question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow setting skip_covered to False for HTML

See original GitHub issue

For 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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nedbatcommented, Jan 10, 2021

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.

0reactions
gaborbernatcommented, Jan 11, 2021
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found