Allow setting skip_covered to False for HTML
See original GitHub issueFor CLI output it’s common to set skip-covered=True
in the config file; however, in HTML export you want to set this False so you can see what test covers what line. There’s a new flag in this in the API:
--no-skip-covered Disable --skip-covered.
In this case https://github.com/pytest-dev/pytest-cov/blob/master/src/pytest_cov/engine.py#L189 should allow specifying as False (see skip_covered https://github.com/nedbat/coveragepy/blob/0b1dd531f23d8ba313ee685b156b07f76fa680d5/coverage/cmdline.py#L623). The one danger is that this flag needs to be somehow specified by the user. Potential options for this:
--cov html:out_dir:no-skip-covered
Should we perhaps set this always to False for HTML report? cc @asottile
PS. coveragepy ticket for perhaps a config side solution https://github.com/nedbat/coveragepy/issues/1090
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Explicitly set disabled="false" in the HTML does not work
The values "true" and "false" are not allowed on boolean attributes. To represent a false value, the attribute has to be omitted altogether....
Read more >Why We Chose a White Slipcovered Sofa
So, the moral of my story is to follow your heart. If your heart is set on a white slipcovered sofa, don't let...
Read more >Faux Leather, Classic Slipcovers & Furniture Covers
Faux Leather, Classic Slipcovers & Furniture Covers : Slipcovers allow you to spruce up your home decor without buying new pieces of furniture....
Read more >Elenora 3 Piece Slipcovered Living Room Set
Features. Designed for maximum comfort and durability; white living room furniture will make your home look open and bright, this white, easy to...
Read more >Whitlocke Slipcover Sofa
Setup is in accordance with manufacturing guidelines so product is ready for intended use. *Our delivery coverage is within 50-miles of a Costco...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I really wish we could stop adding reporting options to pytest-cov, and just have people use the coverage reporting commands directly. There’s no need for pytest to produce coverage reports. It just leads to crazy command-line options like you are proposing.
This now can be solved via https://github.com/nedbat/coveragepy/issues/1090