-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
Report hasn't the TOTAL line if one file is tested only #922
Comments
This has been reported before, in #732. My advice there was to simply read the last word on the last line of the report, which will be what you want in all cases. But now, as of version 5.0, there's a better answer: use the "coverage json" report, and read the number programmatically. |
@mosling Also, I'm curious what you use the total number for. Maybe there's a better way we can provide it. Do you know about the |
Now with #1091, the TOTAL line is always output. |
This is now released as part of coverage 5.4. |
Describe the bug
A very simple setup, I have one python script (script.py) and a test for this script (script_test.py).
The result for
coverage run -m pytest
andcoverage report
isBut the same with
coverage run --omit='*_test.py' -m pytest
andcoverage report
results intoThe summary line with TOTAL is missing
I use GitLab and look for the TOTAL line to catch the test coverage.
To Reproduce
How can we reproduce the problem? Please be specific.
Expected behavior
TOTAL line should appear in every case. It is important for data processing to have the same behavior in each case, I never see the output ;-)
The text was updated successfully, but these errors were encountered: