This plugin allows you to capture code coverage report from JaCoCo. Jenkins will generate the trend report of coverage.
This plugin is fork of the Emma Plugin. Big part of the code structure comes from it, however, it is completely refactored.
It also includes functionality similar to the Emma Coverage Column which allows to include a column in Dashboards which displays the latest overall coverage numbers and links to the coverage report.
The plugin provides two things, a build-publisher to record and display coverage data as part of builds as well as a new column-type for dashboard views which can display coverage data in Dashboards.
First you need to get coverage calculated as part of your build/tests, see the JaCoCo documentation for details. You need at least one or more *.exec file available after tests are executed. Usually this means adjusting your Maven pom.xml or Ant build.xml file..
In order to get the coverage data published to Jenkins, you need to add a JaCoCo publisher and configure it so it will find all the necessary information. Use the help provided via the question-mark links for more information. Basically you specify where the *.exec files are, where compiled code can be found and where the corresponding source code is located after the build is finished to let the plugin gather all necessary pieces of information..
After the job executed, the build-output will show that the JaCoCo-publisher is executed and collects the data. This output can also give hints if something goes wrong at this stage:
If data gathering is successful, the build will include a link to the coverage results similar to the HTML report of JaCoCo itself. The job page will be enhanced with a chart with the trend of code coverage over the last builds.
This part of the JaCoCo plugin allows you to add a new type of column to a project-table in the Dashboard view which will show the coverage number of the last build for ajob together with some color coding which allows to quickly see projects with low coverage.
The fill-color in use by the column is a continuous color-range with the following points:
Core JaCoCo plugin
Core JaCoCo plugin
Skip to end of metadata Go to start of metadata