HBASE-12709 [mvn] Add unit test excludes command line flag to the build

This commit is contained in:
Jonathan M Hsieh 2014-12-18 06:42:21 -08:00
parent 949982fc6e
commit 83cf07db66
1 changed files with 8 additions and 0 deletions

View File

@ -517,6 +517,13 @@
<systemPropertyVariables> <systemPropertyVariables>
<jacoco-agent.destfile>target/jacoco.exec</jacoco-agent.destfile> <jacoco-agent.destfile>target/jacoco.exec</jacoco-agent.destfile>
</systemPropertyVariables> </systemPropertyVariables>
<excludes>
<!-- users can add -D option to skip particular test classes
ex: mvn test -Dtest.exclude.pattern=**/TestFoo.java,**/TestBar.java
-->
<exclude>${test.exclude.pattern}</exclude>
</excludes>
</configuration> </configuration>
<executions> <executions>
<execution> <execution>
@ -1054,6 +1061,7 @@
<surefire.testFailureIgnore>false</surefire.testFailureIgnore> <surefire.testFailureIgnore>false</surefire.testFailureIgnore>
<test.output.tofile>true</test.output.tofile> <test.output.tofile>true</test.output.tofile>
<surefire.timeout>900</surefire.timeout> <surefire.timeout>900</surefire.timeout>
<test.exclude.pattern></test.exclude.pattern>
<hbase-surefire.argLine>-enableassertions -XX:MaxDirectMemorySize=1G -Xmx1900m <hbase-surefire.argLine>-enableassertions -XX:MaxDirectMemorySize=1G -Xmx1900m
-XX:MaxPermSize=256m -Djava.security.egd=file:/dev/./urandom -Djava.net.preferIPv4Stack=true -XX:MaxPermSize=256m -Djava.security.egd=file:/dev/./urandom -Djava.net.preferIPv4Stack=true
-Djava.awt.headless=true -Djava.awt.headless=true