-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Don't show the omitted files in the Test Coverage Toolbar #24366
Comments
good idea yes! I can do this specifically on the python side. This will need development time so just putting it for community feedback to see how many people are hitting this issue |
Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue. |
"Run Test with Coverage" should allow omitting files from the report. Ideally, honor the "omit" setting in the coverage configuration. Some default arguments may be set, such as .venv. It seems this can be done using a workaround, namely, by using tool.coverage.run.omit (as opposed to tool.coverage.report.omit, which I tried previously).
copied from #24309 as both are related to omitting files for coverage |
Hi @paduszyk! In what way did you configure your file to omit? I did the most basic setup and it worked for me: |
@eleanorjboyd Actually, I configure the https://coverage.readthedocs.io/en/7.6.5/config.html#run-omit But, to be honest, the difference is not clear to me. I use the latter, as it sounds more logical to me to use report section to affect the behavior referred to coverage reports. Besides, I prefer |
@eleanorjboyd Indeed, if I move |
hm yes this is a good point about the |
I like the new Test Coverage Toolbar feature. I use it with Python and Coverage.py run via
pytest
andpytest-cov
plugin.Coverage.py enables omitting some files using globs (e.g. configuration modules or development scripts; see docs). I think that NOT showing those files in the toolbar could be an interesting enhancement.
Sorry if you find this issue biased to Python. I am not so familiar with other languages and testing tools available for them.
The text was updated successfully, but these errors were encountered: