O'Reilly logo

Sonar Code Quality Testing Essentials by Charalampos Arapidis

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

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 ...

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