Versions Compared

Key

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

...

  • Which files are covered by a given unit test?
  • How many lines of code are covered by a given unit test?
  • Which lines are covered by a given unit test?
  • Which tests cover a given line of code?

See Component Viewer on Unit Test File for more details.

A sample project is available on github that can be browsed or downloadedprojects/code-coverage/ut/maven/ut-maven-jacoco-runTests. What you need to add to your pom.xml to get this behavior is contained between "BEGIN/END: Specific to mapping unit tests and covered code" tags in the pom file. Note that you have to run the analysis with the coverage-per-test profile. Read the README file for more information.

...