-
-
Notifications
You must be signed in to change notification settings - Fork 687
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
Core test coverage report doesn't work locally #1673
Comments
I'm taking a look at this. |
The problem is still happening after the merge of #1669 |
Yes, I think I understand what's going on now. I'll post a full explanation later, but for now can you try upgrading to coverage version 6.6.0b1, and then repeating the process you described under "Additional context"? |
Ye, it solved the problem :)
|
Even though it does seems like the problem was fixed, there is still that thing that if I want to check the coverage locally I need to go through all these steps each and every time:
While before the change all you had to do is to run Another solution could be to create a script that does all of the above, or to add a new environment in the core "tox.ini" file. |
The original issue was caused by a problem with the The second case (under "Additional context"), is Windows-specific. This is probably related to nedbat/coveragepy#991, which was referenced in ci.yml. It appears to be fixed in coverage version 6.6.0b1, so I'll update CI to use that.
In #1674 I've added a comment at the top of pyproject.toml which gives a simpler sequence of commands. We still need to run |
Describe the bug
In PR #1643 the coverage configuration of the core library was moved to the core library folder.
Now it seems like I cannot see the actual coverage reprot when I run it locally.
To Reproduce
Steps to reproduce the behavior:
pip install tox
tox -e py
coverage combine
coverage report
No source for code: 'C:\Users\sagi\PycharmProjects\toga\src\core\src\toga_dummy\__init__.py'
Expected behavior
Getting coverage report for the core library should work locally.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment:
Additional context
I tried to move the coverage report created by
tox -e py
to the root directory and then runcoverage combine
andcoverage report
, the same way as it seems like the CI does it, but than I get the following:It seems like the coverage is 0%...
The text was updated successfully, but these errors were encountered: