Skip to content
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

Allow overriding skip_covered under the html section #1090

Closed
Labels
enhancement New feature or request fixed

Comments

@gaborbernat
Copy link
Contributor

For a terminal report to not show fully covered lines, one can set skip_covered to True. For HTML reports though you do want to report on all files, so you can see what covers what. Would be good to be able to specify this configuration scenario via the config only, perhaps by allowing to override coverage:report skip_covered under coverage:html. Currently, you can only override via the CLI, but for example in pytest-cov these flags are not exposed to alter.

PS. pytest-cov ticket solution for this pytest-dev/pytest-cov#449

@ryboe
Copy link

ryboe commented Jan 10, 2021

I'd like to be able to write this in pyproject.toml.

[tool.coverage.html]
skip_covered = true

Thank you! 🙏

@nedbat
Copy link
Owner

nedbat commented Jan 11, 2021

This is implemented in #1099. Does it do what you need?

@ryboe
Copy link

ryboe commented Jan 12, 2021

Yes it does! Thank you! That was so fast! 🙏

@nedbat
Copy link
Owner

nedbat commented Jan 26, 2021

This is now released as part of coverage 5.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fixed
Projects
None yet
3 participants