HBASE-8808 Use Jacoco to generate Unit Test coverage reports (Manukranth)
This commit is contained in:
parent
136d2d2156
commit
aa986551c3
35
pom.xml
35
pom.xml
|
@ -527,8 +527,11 @@
|
||||||
<testFailureIgnore>${surefire.testFailureIgnore}</testFailureIgnore>
|
<testFailureIgnore>${surefire.testFailureIgnore}</testFailureIgnore>
|
||||||
<forkedProcessTimeoutInSeconds>${surefire.timeout}</forkedProcessTimeoutInSeconds>
|
<forkedProcessTimeoutInSeconds>${surefire.timeout}</forkedProcessTimeoutInSeconds>
|
||||||
<!--Allocate some direct memory for direct memory tests-->
|
<!--Allocate some direct memory for direct memory tests-->
|
||||||
<argLine>${hbase-surefire.argLine}</argLine>
|
<argLine>${hbase-surefire.argLine} ${argLine}</argLine>
|
||||||
<redirectTestOutputToFile>${test.output.tofile}</redirectTestOutputToFile>
|
<redirectTestOutputToFile>${test.output.tofile}</redirectTestOutputToFile>
|
||||||
|
<systemPropertyVariables>
|
||||||
|
<jacoco-agent.destfile>target/jacoco.exec</jacoco-agent.destfile>
|
||||||
|
</systemPropertyVariables>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
|
@ -892,6 +895,32 @@
|
||||||
<templateFile>${basedir}/src/main/site/site.vm</templateFile>
|
<templateFile>${basedir}/src/main/site/site.vm</templateFile>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.jacoco</groupId>
|
||||||
|
<artifactId>jacoco-maven-plugin</artifactId>
|
||||||
|
<version>${jacoco.version}</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>prepare-agent</id>
|
||||||
|
<goals>
|
||||||
|
<goal>prepare-agent</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>report</id>
|
||||||
|
<phase>prepare-package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>report</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
<configuration>
|
||||||
|
<skip>${hbase.skip-jacoco}</skip>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/generated/**/*.class</exclude>
|
||||||
|
</excludes>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<properties>
|
<properties>
|
||||||
|
@ -982,6 +1011,8 @@
|
||||||
-Djava.security.egd=file:/dev/./urandom -Djava.net.preferIPv4Stack=true
|
-Djava.security.egd=file:/dev/./urandom -Djava.net.preferIPv4Stack=true
|
||||||
"-Djava.library.path=${hadoop.library.path};${java.library.path}"
|
"-Djava.library.path=${hadoop.library.path};${java.library.path}"
|
||||||
</hbase-surefire.cygwin-argline>
|
</hbase-surefire.cygwin-argline>
|
||||||
|
<hbase.skip-jacoco>true</hbase.skip-jacoco>
|
||||||
|
<jacoco.version>0.6.2.201302030002</jacoco.version>
|
||||||
</properties>
|
</properties>
|
||||||
<!-- Sorted by groups of dependencies then groupId and artifactId -->
|
<!-- Sorted by groups of dependencies then groupId and artifactId -->
|
||||||
<dependencyManagement>
|
<dependencyManagement>
|
||||||
|
@ -1489,7 +1520,7 @@
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<argLine>${hbase-surefire.cygwin-argline}</argLine>
|
<argLine>${hbase-surefire.cygwin-argline} ${argLine}</argLine>
|
||||||
<systemProperties>
|
<systemProperties>
|
||||||
<property>
|
<property>
|
||||||
<name>java.net.preferIPv4Stack</name>
|
<name>java.net.preferIPv4Stack</name>
|
||||||
|
|
Loading…
Reference in New Issue