-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
line_profiler as a pytest plugin #57
Comments
If you would like to write that plugin, I think it would make a lot of sense to write is as a separate package (maybe pytest-line-profiler?) that depends on If you ensure that your package is tested, on a CI, and published on pypi, I can either give a shout-out to it in the README of this repo, or if your package is really good or becomes popular then I can add it as an optional dependency in Let me know if you want to give it a shot, or if you don't have experience in any creating a new python package, running tests on a CI, or publishing on pypi. |
I've just pushed a first version of this idea https://github.com/mgaitan/pytest-line-profiler. It would be awesome if you can try it and give me some feedback. |
I frequently want to execute line_profiler for some function/code under a particular context already defined in a unittest.
So I would like to instrument something equivalent to the
%lprun
magic as a pytest's extension, where I can pass a list of functions to inspect in the command line before theFor instance
would something like this be desirable?
The text was updated successfully, but these errors were encountered: