Skip to content

Instantly share code, notes, and snippets.

@eddumelendez
Last active August 29, 2015 14:21
Show Gist options
  • Save eddumelendez/0c3970c86be11c78c356 to your computer and use it in GitHub Desktop.
Save eddumelendez/0c3970c86be11c78c356 to your computer and use it in GitHub Desktop.
SonarQube 5.1 Code Coverage
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12.4</version>
<configuration>
<systemPropertyVariables>
<apptest>${project.basedir}/src/test/resources</apptest>
</systemPropertyVariables>
<properties>
<property>
<name>listener</name>
<value>org.sonar.java.jacoco.JUnitListener</value>
</property>
</properties>
</configuration>
</plugin>
<dependencies>
<dependency>
<groupId>org.codehaus.sonar-plugins.java</groupId>
<artifactId>sonar-jacoco-listeners</artifactId>
<version>1.2</version>
<scope>test</scope>
</dependency>
</dependencies>
mvn -Psonar clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment