SonarQube Cobertura Plugin

Code coverage analysis using Cobertura

License

License

Categories

Categories

Cobertura Application Testing & Monitoring Code Coverage
GroupId

GroupId

org.codehaus.sonar-plugins
ArtifactId

ArtifactId

sonar-cobertura-plugin
Last Version

Last Version

1.6.3
Release Date

Release Date

Type

Type

sonar-plugin
Description

Description

SonarQube Cobertura Plugin
Code coverage analysis using Cobertura
Project Organization

Project Organization

SonarSource
Source Code Management

Source Code Management

https://github.com/SonarCommunity/sonar-cobertura

Download sonar-cobertura-plugin

Dependencies

provided (3)

Group / Artifact Type Version
org.codehaus.sonar : sonar-plugin-api jar 4.2
org.codehaus.sonar-plugins.java : sonar-java-plugin sonar-plugin 2.1
org.apache.maven : maven-project jar 2.2.0

test (3)

Group / Artifact Type Version
org.codehaus.sonar : sonar-testing-harness jar 4.2
org.easytesting : fest-assert jar 1.4
org.mockito : mockito-all jar 1.9.5

Project Modules

There are no modules declared in this project.

Sonar Cobertura

Current version: 2.0

Build Status Code Climate Issue Count

How to contribute

  • If you experienced a problem with the plugin please open an issue. Inside this issue please explain us how to reproduce this issue and paste the log.
  • If you want to do a PR, please put inside of it the reason of this pull request. If this pull request fix an issue please insert the number of the issue or explain inside of the PR how to reproduce this issue.
  • Please have a look in the wiki for integration testing.

Description / Feature

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

Cobertura Plugin | 1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.6 | 1.7 | 1.8 | 1.9 | 1.9.1 | 2.0 | ---------------- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | Reports generated with Cobertura | 1.9.4.1 | 1.9.4.1 | 1.9.4.1 | 1.9.4.1 | 1.9.4.1 | 1.9.4.1 | 1.9.4.1 | 1.9.4.1 | 1.9.4.1 | 1.9.4.1 | 1.9.4.1

Usage

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

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

For more on Cobertura, see Cobertura' site.

See Code Coverage by Unit Tests for Java Project tutorial.

Versions

Version
1.6.3
1.6.2
1.6.1
1.6
1.5
1.5-RC1
1.4