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
django-jenkins doesn't work with coverage.py 4.0a1 #246
Comments
Hi, Ned, than you for help.
|
The functions described here should be enough: http://nedbatchelder.com/code/coverage/api.html If they are not, let's talk about it, so that we can extend the API in ways that you need. |
Hello, Ended up in reading self.coverage._harvest_data() and everything is fine. |
@aleator83 I'm not sure what you are referring to, but if you are calling |
The problem only exists with coverage 3.7.1 as set in the requirements.txt Steps to reproduce mkdir testcase In reports/coverage.xml you will see it will also scan stuff under the .env directory. |
If you have no PROJECT_APPS settings all packages are covered. |
PROJECT_APPS setting makes no difference to this problem |
yep, confirmed. without _harvest_data() calls morfs are ignored there is something wrong with @nedbat coverage. |
I'm trying to understand what you are doing here, but I'm not getting the same results you are. I ran these commands:
When I looked at coverage.xml, it had entries for these files:
Yes, files from .env are in there, but none of the files from the project directory are!? But these instructions install the tip of django_jenkins, which still has the _harvest_data call in it, so I'm very confused. But let's step back: it seems like a lot of the code in with_coverage.py is trying to emulate options that coverage already supports. Can we talk about what it is you want coverage to do, and I can help you find the best way to do it? |
Pin coverage to version 3.7.1 as Jenkins does not work with newer version. See also kmmbvnr/django-jenkins#246
Hi, there are a few things you are doing that are not part of the publicly supported API of coverage.py, and one of them is breaking with 4.0a1.
First, you should import "coverage" like this:
Because you are importing from "coverage.control", it doesn't work with coverage.py 4.0a1.
Secondly, I see you are calling
_harvest_data
directly. You shouldn't need to do this, as the leading underscore indicates.If I can help to get django-jenkins working using only the public APIs, please let me know.
The text was updated successfully, but these errors were encountered: