Question: I have a Kotlin project with Spring, and I created a class that looks like the following: And my SonarCloud reports state that the quantityOfDays line is not covered by tests: This line is accessed multiple times inside my ...

Question: I wonder what options there are for .NET (or C# specifically) code coverage, especially in the lower priced segment? I am not looking for recommendations, but for a comparison of products based on facts. I know the following: NCover ...

Question: After running coverage reports in Eclipse (using cobertura or an EMMA plugin), my source code files get highlighted in green, red and yellow depending on which lines of code were covered by tests. How can I clear this highlighting ...

Question: If you were to mandate a minimum percentage code-coverage for unit tests, perhaps even as a requirement for committing to a repository, what would it be? Please explain how you arrived at your answer (since if all you did ...

Question: I was trying to generate a code coverage report from trace1.json. The trace1.json was not generated by gcovr, it was generated using Lauterbach software from the real hardware trace data. From Lauterbach spec, it has the ability to export ...

Question: I run a couple of different PHPUnit test suits and for each of them, a coverage file is generated, like: vendor/bin/phpunit -c phpunit-no-db.xml –coverage-php ./test/coverage/cov_files/NO_DB.cov Afterwards all these coverage files are merged using php-cov to generate a clover file ...

Question: I am trying to measure code coverage with a code that uses threads created by the python threading module. I am using coverage to measure coverage. However I can not get the code that is run within a thread ...

Question: At work we use GitLab which reads Cobertura output. We are creating tooling around it (to produce and ingest these formats). Is there a standard for Cobertura’s XML report? Are there officials examples of this spec for the purpose ...

Question: The coverage report only shows the percentage, and I would like to know all executed statements. Eventually, I need a map in which the key is the statement and the value is True(Executed)/False(Not Executed). Is there any way to ...

Question: I am using jest config in my package.json: All of my coverage parameters pass except I get the following messages at the end: Jest: Coverage data for resetMocks was not found. Jest: Coverage data for restoreMocks was not found. ...