Description / Features
Get code coverage for Java project with Atlassian Clover.
Installation
- Install the Clover plugin through the Update Center or download it into the SONAR_HOME/extensions/plugins directory
- Restart the Sonar server
Usage
License Key and Maven Clover Plugin
From the settings page, the version of the Maven Clover plugin to be used and the license key can be set.
By uploading the license key (clover 1 or clover 2) into Sonar, you will benefit from a centralized configuration.
- By default, the sonar-plugin-clover1 runs the maven-clover-plugin.
- By default, the sonar-plugin-clover2 runs the maven-clover2-plugin.
In case the Clover plugin is defined in the pom.xml of your project, Sonar will use the version defined in the pom with its attached configuration.
Unit Tests and Code Coverage Reports
See the Code Coverage by Unit Tests for Java Project tutorial.
Advanced Parameters
Key | Description | Default value |
|---|---|---|
sonar.java.target | Target java version of the source code. | 1.4, 1.5 since 2.10 |
Known Limitations
- Problems with GWT - see SONARPLUGINS-1048
Change Log
| Release 2.9 (2 issues) | |||
|---|---|---|---|
| Type | Key | Summary | Priority |
|
|
SONARPLUGINS-2397 | Support the new property 'sonar.java.coveragePlugin' |
|
|
|
SONARPLUGINS-2363 | Upgrade to Sonar 3.0 API |
|
| Release 2.8 (1 issues) | |||
|---|---|---|---|
| Type | Key | Summary | Priority |
|
|
SONARPLUGINS-1147 | Clover should support Maven 3 by default |
|
| Release 2.7 (1 issues) | |||
|---|---|---|---|
| Type | Key | Summary | Priority |
|
|
SONARPLUGINS-1031 | Support coverage of new code |
|

