Add option to include TOTAL line even if there's only one file · Issue #1086 · nedbat/coveragepy (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Description
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.