Top "Code-coverage" questions

"Code coverage" (synonym: test coverage) is a measure of the amount of application source code that has been exercised, usually by some testing regime, often by unit testing.

What is a reasonable code coverage % for unit tests (and why)?

If you were to mandate a minimum percentage code-coverage for unit tests, perhaps even as a requirement for committing to …

unit-testing code-coverage code-metrics
Clearing coverage highlighting in Eclipse

After running coverage reports in Eclipse (using cobertura or an EMMA plugin), my source code files get highlighted in green, …

java eclipse code-coverage cobertura emma
What is code coverage and how do YOU measure it?

What is code coverage and how do YOU measure it? I was asked this question regarding our automating testing code …

testing computer-science code-coverage
What can I use for good quality code coverage for C#/.NET?

I wonder what options there are for .NET (or C# specifically) code coverage, especially in the lower priced segment? I …

c# .net code-coverage
Code coverage with Mocha

I am using Mocha for testing my NodeJS application. I am not able to figure out how to use its …

node.js unit-testing code-coverage mocha
How to configure multi-module Maven + Sonar + JaCoCo to give merged coverage report?

I've searched up and down the internet for this one. There's lots of half-answers out there, to do with Maven …

maven code-coverage sonarqube jacoco
how to use jacoco.exec report

I generated a code coverage report from jacoco, which is jacoco.exec. But I don't know how to use it ... …

testing code-coverage jacoco
How to measure code coverage in Golang?

Has anyone succeeded in generating code coverage for Go unit tests? I can't find a tool for that on the …

unit-testing testing go code-coverage
Filter JaCoCo coverage reports with Gradle

Problem: I have a project with jacoco and I want to be able to filter certain classes and/or packages. …

java unit-testing gradle code-coverage jacoco
Exclude methods from code coverage with Cobertura

Is there a way to exclude code from inclusion into Cobertura coverage reports? We have some methods that should not …

java code-coverage cobertura