Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Is dotCover coverage accurate even if some tests fail?

I have some nUnit tests that are currently failing. For some corporate reasons, I don’t want to spend any time trying to fix those tests right now. But I am running a dotCover coverage report on these tests, and I want to know whether the "Uncovered" line count is inclusive or exclusive of these failing tests. To put it another way, if all the tests were to pass, would the coverage percentage increase?

These are new projects, so I have no baseline to understand whether the figure has dropped.

Yes, the tests will be fixed in due course, but not today / now.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

dotCover’s ‘Uncovered’ line count is inclusive of the failing tests, meaning that if you fixed the tests it should decrease as more ‘lines’ are now covered by successful tests.

Yes, the coverage percentage would also increase in proportion to the number of lines covered increasing.

Failing tests -> less lines covered -> lower test coverage %

Passing tests -> more lines covered -> higher test coverage %

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading