Versions Compared

Key

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

Description / Feature

Get code coverage for Java project with Cobertura. The plugin is based on the cobertura-maven-plugin and so can only be used to compute code coverage information on Maven projects.

Sonar Cobertura Plugin

1.1

Cobertura

1.9.4.1
cobertura-maven-plugin2.5.1

Installation

  1. Install the Cobertura plugin through the Update Center or download it into the SONAR_HOME/extensions/plugins directory from the Java Ecosystem page
  2. Restart the Sonar server

Usage

See Code Coverage by Unit Tests for Java Project tutorial.

In case the cobertura-maven-plugin is defined in the pom.xml of your project, Sonar will use the version defined in the pom and can potentially not function properly.
Note
Wiki Markup
{iframe:src=http://redirect.sonarsource.com/plugins/cobertura.html|width=700|height=300|frameborder=0}
Documentation has been moved to [http://redirect.sonarsource.com/plugins/cobertura.html].
{iframe}