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.

Missing branches when using assertTrue instead of assertNull

In Java/Junit, I need to test for null with some object. There are a variety of ways I can …

junit code-coverage bytecode emma jacoco
Is it possible exclude test directories from coverage.py reports?

I'm kind of a rookie with python unit testing, and particularly coverage.py. Is it desirable to have coverage reports …

python testing software-quality code-coverage coverage.py
What is a branch in code coverage for JavaScript unit testing

I use Istanbul for code coverage of unit tests in an AngularJS project. There are 4 types of coverage and they …

javascript unit-testing code-coverage istanbul
Open JaCoCo report in Intellij IDEA

I am trying to find dead code on our application by using a code coverage tool (rather a static code …

java intellij-idea code-coverage jacoco
How to use EMMA code coverage in android

I'm new to EMMA, I don't know how to use this for android system. Can anyone please give a sample …

android testing code-coverage metrics
How to calculate code coverage of selenium tests with respect to web application code

I have a requirement to capture the code coverage of my selenium tests to the amount of source code in …

java javascript selenium code-coverage jacoco
Is there a way to focus lcov code coverage reports to just one or two directories?

I recently started using lcov to visualize my code coverage. It's a great tool. One thing I'm noticing is that …

code-coverage gcov lcov
Viewing Code Coverage Results outside of Visual studio

I've got some unit tests, and got some code coverage data. Now, I'd like to be able to view that …

c# code-coverage code-analysis report
Jest: Ignore lines for code coverage

In Jest, is there any way to ignore code for test coverage? I tried using /* istanbul ignore next */ But it …

code-coverage jestjs istanbul
8 branches for try with resources - jacoco coverage possible?

I've got some code that uses try with resources and in jacoco it's coming up as only half covered. All …

java code-coverage bytecode jacoco try-with-resources