-
-
Notifications
You must be signed in to change notification settings - Fork 433
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
Add option to include TOTAL line even if there's only one file #1086
Comments
@nedbat I'd be happy to take a crack at coding it up. Do you have a preference on the option name? |
Thanks. I would name it |
I hope this doesn't sound aggravating, but maybe the better path here is to just always output the total line, without an option. |
Not aggravating at all, I'm more than happy to go with a simpler solution. I'll submit a new PR (and make sure all the tests still pass). |
This is now released as part of coverage 5.4. |
Is your feature request related to a problem? Please describe.
Currently the total line is skipped when there's only one file whose coverage was computed. This is annoying when using a regex to report on coverage from a CI/CD build log (e.g. in Gitlab) because one can't use the recommended regex.
Describe the solution you'd like
Either always print the TOTAL line, or add an option to force it even when there's only one file.
The text was updated successfully, but these errors were encountered: