| Wiki Markup |
|---|
{iframe:src=http://update.sonarsource.org/plugins/clover.html|width=700|height=250|frameborder=0}
{color:#333333}Your browser does not support iframes.{color}{iframe} |
Description / Features
Get code coverage for Java project with Atlassian Clover.
Configuration
In order to make Sonar use the Clover Java code coverage engine, the property "sonar.core.codeCoveragePlugin" must be set to "clover". It can be set in different locations:
- Global settings (Configuration > Global Settings > Code Coverage). It will apply to all Java projects.
- Project settings (Project > Settings > Code Coverage). It will apply to this specific projet.
- Build tool settings, for example a Maven property in the pom or a command-line property.
...
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.5 |
Known Limitations
- Problems with GWT - see SONARPLUGINS-1048
...
Change Log
| JIRA Issues | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| JIRA Issues | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
| JIRA Issues | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|

