Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
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

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 -> 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.

Note

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

JIRA Issues
anonymoustrue
titleRelease 2.8
height60
width900
columnstype;key;summary;priority;status;resolution
urlhttp://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=17349&pid=11911&sorter/field=issuekey&sorter/order=DESC&tempMax=1000


JIRA Issues
anonymoustrue
titleRelease 2.7
height60
width900
columnstype;key;summary;priority;status;resolution
urlhttp://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=17234&pid=11911&sorter/field=issuekey&sorter/order=DESC&tempMax=1000