Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 18 Next »

Description

Get code coverage 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.

From the settings pages, 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 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.

Icon

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.

Known Limitations

Changelog

Loading

Release 2.8 (1 issues)

Type Key Summary Priority Status Resolution
Improvement SONARPLUGINS-1147 Clover should support Maven 3 by default Major Closed Fixed

 

Loading

Release 2.7 (1 issues)

Type Key Summary Priority Status Resolution
Improvement SONARPLUGINS-1031 Support coverage of new code Major Closed Fixed

  • No labels