Get code coverage with Atlassian Clover.
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 -> Settings -> Core). It will be applied to all Java projects.
- Project settings (Project -> Settings -> Core)
- Build tool setting, for example a Maven property in the pom or a command-line property
Then from the Settings pages, the version of the clover maven to be used and the license key can be defined :
By uploading the license key (clover 1 or clover 2) into Sonar, you 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.
- Problems with GWT - see SONARPLUGINS-1048
Release 2.8 (1 issues)
|SONARPLUGINS-1147||Clover should support Maven 3 by default||Closed||Fixed|