In this chapter, code coverage is described in depth and examples are provided to measure code coverage using Eclipse plugins and various coverage tools, such as Clover, JaCoCo, EclEmma, and Cobertura. We have also configured Ant, Maven, and Gradle to generate code coverage reports using coverage tools.
By the end of this chapter, you should be able configure Eclipse plugins and build scripts to measure code coverage.
The next chapter covers the static code analysis, code metrics, and various open source tools. It configures and uses PMD, Checkstyle, and FindBugs to analyze code quality and explores the Sonar code quality dashboard.