-
Notifications
You must be signed in to change notification settings - Fork 212
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
Testing on Windows doesn't produce coverage data #155
Comments
This would explain the problems I'm having on Win10. I have following package versions:
.coveragerc contains:
Running pytest with:
correctly calculates coverage for the Python files in core but doesn't find any of the templates. |
@tolomea Perhaps there is a problem with the location of the code (eg: it's in in @astronouth7303 I can't see any build output from that appveyor link. Also the coverage file link is broken/expired. |
@ionelmc the core directory containing the templates is in the current working directory as are .coveragerc and manage.py and as mentioned it finds the py files in that app, just not the templates. I found a Linux machine to test it on and it happily finds the templates, so it does seem to be a Windows specific issue. |
@tolomea sounds like a django plugin issue, have you tried reporting it to whomever maintains it? |
@ionelmc oops, I had mistakenly thought this was a django plugin issue (too many browser tabs :) I'll take it over there, thanks. |
@astronouth7303 I've now looked over your project and everything seems to work as expected. You have multiple problems in your project tho:
These may be fixed with proper project layout (the src layout) or change of CWD to a temp dir while test runs. Unfortunate consequences of Python putting CWD in sys.path :) You may still need some coverage configuration. See this or this. |
Specifically, this appveyor config file was run through appveyor and produced this coverage file.
Only on Windows/Appveyor, not Mac/Travis or Linux/Travis, is the coverage information just missing.
The text was updated successfully, but these errors were encountered: