Code coverage tools

There are many different code coverage tools specifically for Java, the most popular of them, either free or commercial, being:

Sonar uses Cobertura and JaCoCo but there is support for Clover and EMMA via Sonar plugins. The basic lifecycle of a code coverage analysis process consists of the following steps:

  • Byte code instrumentation—injects custom code to enable measurements
  • Test execution—performs the tests with the injected code
  • Analysis report—generation generates a test report in formats such as XML, HTML, PDF
  • Sonar data ...

Get Sonar Code Quality Testing Essentials now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.