O'Reilly logo

Android Application Development with Maven by Patroklos Papapetrou, Jonathan LALOU

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Measuring test coverage

Having a complete test suites of the source code is very important to know that the application is bug-free and it has the expected behavior. However, when the application is growing, it's hard to keep track of which classes are adequately tested or not. It's hard to know, on other words, the test coverage of our application.

Thankfully, there are several tools that compute the test coverage, and they integrate very well with Maven; so in this section we will pick two of them (the most popular and stable ones) and we will see what is the necessary configuration to gather this information while running our unit tests.

JaCoCo

Java Code Coverage (JaCoCo) (http://www.eclemma.org/jacoco/trunk/doc/maven.html) tool has become the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required