From aa986551c3ab7598882fbd2f5a9cdb4694b5c508 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 f0edfc92fcd..5ee37d37304 100644 --- a/pom.xml +++ b/pom.xml @@ -527,8 +527,11 @@ ${surefire.testFailureIgnore} ${surefire.timeout} - ${hbase-surefire.argLine} + ${hbase-surefire.argLine} ${argLine} ${test.output.tofile} + + target/jacoco.exec + @@ -892,6 +895,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 + + + @@ -982,6 +1011,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 @@ -1489,7 +1520,7 @@ org.apache.maven.plugins maven-surefire-plugin - ${hbase-surefire.cygwin-argline} + ${hbase-surefire.cygwin-argline} ${argLine} java.net.preferIPv4Stack