-
Notifications
You must be signed in to change notification settings - Fork 211
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
Quick Question: Pytest-cov only works when package installed with "-e"? #388
Comments
Installing in develop/editable mode creates a Your coverage is configured to only check coverage of the python code from your source directory and therefore gets 0% coverage on the source code copied to |
Please take a look at https://github.com/pytest-dev/pytest-cov/tree/master/examples - pretty sure you can copy something from there to make it work in your project. |
This is why I was getting
(Strangely running the doctests was generating some coverage, even though the project was not installed in editable mode.) |
I was having a very similar issue. |
Hello pytest-cov developers!
I just spent an hour debugging why my coverage report was all 0% and it looks like the culprit was that my package was installed as
pip install .
instead ofpip install -e .
. Is that the expected behavior?Can anyone help me to understand why the
-e
option matters for the coverage report?Thanks for your help!
The text was updated successfully, but these errors were encountered: