Dashboard > GreenPepper Open Documentation Refactoring > ... > 3. Use GreenPepper Maven plugin > Sonar
  GreenPepper Open Documentation Refactoring Log In View a printable version of the current page.  
  Sonar
Added by Francois Denommee, last edited by Francois Denommee on Jun 16, 2010  (view change)
Labels: 
(None)

Sonar

Sonar is an open platform to manage code quality.

The Sonar GreenPepper Plugin collects test reports provided by GreenPepper Maven plugin to feed Sonar.

To produce GreenPepper test reports, the easiest way is :

mvn clean integration-test sonar:sonar
The integration-test will trigger the greenpepper:compile, greenpepper:resources, greenpepper:fixture-jar and the greenpepper:run goals.

Make sure to produce report in XML format by adding

<reportsType>xml</reportsType>
to the Maven GreenPepper configuration or by specifying
-Dmaven.greenpepper.reports.type=xml
on the command line of Maven

Failures

The GreenPepper Maven plugin will stop when a failure is detected and will abort Sonar execution. To prevent this, specify

-Dmaven.greenpepper.test.failure.ignore=true
on the command line

DEMONSTRATION LICENSE - This Confluence site is for demonstration purposes only. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.4.3 Build:#705 Mar 21, 2007) - Bug/feature request - Contact Administrators