From 3533820efb2d0ad80b4bf0ee05c25f4ff2b59436 Mon Sep 17 00:00:00 2001 From: stack Date: Fri, 3 Oct 2014 21:51:49 -0700 Subject: [PATCH] HBASE-8808 Use Jacoco to generate Unit Test coverage reports (Manukranth) --- pom.xml | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 079033c771a..2d43c950a7c 100644 --- a/pom.xml +++ b/pom.xml @@ -471,8 +471,11 @@ ${surefire.testFailureIgnore} ${surefire.timeout} - ${hbase-surefire.argLine} + ${hbase-surefire.argLine} ${argLine} ${test.output.tofile} + + target/jacoco.exec + @@ -854,6 +857,32 @@ ${basedir}/src/main/site/site.vm + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + prepare-agent + + prepare-agent + + + + report + prepare-package + + report + + + + + ${hbase.skip-jacoco} + + **/generated/**/*.class + + + @@ -941,6 +970,8 @@ -Djava.security.egd=file:/dev/./urandom -Djava.net.preferIPv4Stack=true "-Djava.library.path=${hadoop.library.path};${java.library.path}" + true + 0.6.2.201302030002 @@ -1448,7 +1479,7 @@ org.apache.maven.plugins maven-surefire-plugin - ${hbase-surefire.cygwin-argline} + ${hbase-surefire.cygwin-argline} ${argLine} java.net.preferIPv4Stack