Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Since Sonar 3.5, it is possible to get display the mapping of unit tests and covered code. The objective is to answer the following questions:

...

See Resource Viewer on Unit Tests for more details.

This use case can only be achieved with Maven and JaCoCo for now.

A sample project is available on github that can be browsed or downloaded: projects/code-coverage/ut/maven/ut-maven-jacoco-runTests-mapping-unitTests-coveredCode

Reusing Existing Reports

Every analyzer supports this reusing reports mode.

...