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.

How to add test coverage to a private constructor?

This is the code: package com.XXX; public final class Foo { private Foo() { // intentionally empty } public static int bar() { return 1; } } …

java testing code-coverage
Mocking Java enum to add a value to test fail case

I have an enum switch more or less like this: public static enum MyEnum {A, B} public int foo(MyEnum …

java unit-testing enums mocking code-coverage
How can I unit test a GUI?

The calculations in my code are well-tested, but because there is so much GUI code, my overall code coverage is …

unit-testing user-interface code-coverage
How to get code coverage using Android Studio?

I am developing apps using Android Studio. I was able to run the test code. But, I do not know …

android gradle code-coverage android-studio
Eclipse plugin for code coverage

I search a code coverage plugin for eclipse. My question is simple: Which plugin do you use with eclipse for …

eclipse eclipse-plugin code-coverage
Laravel 5: PHPUnit and no code coverage driver available

I would like to use PHPUnit to create code coverage reports. I have tried a lot of installation setups found …

phpunit code-coverage laravel-5.2
A difference between statement and decision coverage

Statement coverage is said to make sure that every statement in the code is executed at least once. Decision/branch …

code-coverage metrics
Code coverage with nUnit?

Is there a way to see the code coverage when using nUnit? I know there's such a feature in Visual …

nunit code-coverage
jUnit: How to determine level of code coverage?

How can i determine what percentage of my methods (and code) are covered by jUnit tests? I am assuming there …

junit code-coverage
maven jacoco: not generating code coverage report

I am trying to setup jacoco for my project's code coverage My project is based on Java 1.8 Here is how …

java maven code-coverage jacoco