Full documentation for SonarQube has moved to a new location: http://docs.sonarqube.org/display/SONAR

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 32 Next »

Description / Feature

It provides the ability to feed SonarQube with code coverage data coming from Cobertura.

Cobertura Plugin

1.1
1.21.31.41.51.6

Reports generated with Cobertura

1.9.4.11.9.4.11.9.4.11.9.4.11.9.4.11.9.4.1

Installation

  1. Install the plugin through the Update Center or download it into the SONARQUBE_HOME/extensions/plugins directory
  2. The default location of the XML Cobertura report is : target/site/cobertura/coverage.xml . You can change it in Configure in the Settings > General Settings > Java > Cobertura page
  3. Restart the SonarQube server

Usage

To launch Cobertura from Maven use this command: mvn cobertura:cobertura -Dcobertura.report.format=xml

For more on Cobertura, see its site.

See Code Coverage by Unit Tests for Java Project tutorial.

  • No labels