Author: stack
Date: Thu Sep 29 05:44:55 2011
New Revision: 1177169
URL: http://svn.apache.org/viewvc?rev=1177169&view=rev
Log:
HBASE-4454 Add failsafe plugin to build and rename integration tests
Modified:
hbase/branches/0.92/CHANGES.txt
hbase/branches/0.92/pom.xml
Modified: hbase/branches/0.92/CHANGES.txt
URL:
http://svn.apache.org/viewvc/hbase/branches/0.92/CHANGES.txt?rev=1177169&r1=1177168&r2=1177169&view=diff
==============================================================================
--- hbase/branches/0.92/CHANGES.txt (original)
+++ hbase/branches/0.92/CHANGES.txt Thu Sep 29 05:44:55 2011
@@ -534,6 +534,8 @@ Release 0.92.0 - Unreleased
HBASE-4280 [replication] ReplicationSink can deadlock itself via handlers
HBASE-4014 Coprocessors: Flag the presence of coprocessors in logged
exceptions
(Eugene Koontz)
+ HBASE-4454 Add failsafe plugin to build and rename integration tests
+ (Jesse Yates)
TASKS
HBASE-3559 Move report of split to master OFF the heartbeat channel
Modified: hbase/branches/0.92/pom.xml
URL:
http://svn.apache.org/viewvc/hbase/branches/0.92/pom.xml?rev=1177169&r1=1177168&r2=1177169&view=diff
==============================================================================
--- hbase/branches/0.92/pom.xml (original)
+++ hbase/branches/0.92/pom.xml Thu Sep 29 05:44:55 2011
@@ -250,6 +250,39 @@
</configuration>
</plugin>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-failsafe-plugin</artifactId>
+ <version>2.9</version>
+ <configuration>
+ <includes>
+ <include>${integrationtest.include}</include>
+ </includes>
+ <excludes>
+ <exlude>${unittest.include}</exlude>
+ <exclude>**/*$*</exclude>
+ <exclude>${test.exclude.pattern}</exclude>
+ </excludes>
+ <environmentVariables>
+
<LD_LIBRARY_PATH>${env.LD_LIBRARY_PATH}:${project.build.directory}/nativelib</LD_LIBRARY_PATH>
+
<DYLD_LIBRARY_PATH>${env.DYLD_LIBRARY_PATH}:${project.build.directory}/nativelib</DYLD_LIBRARY_PATH>
+ </environmentVariables>
+ </configuration>
+ <executions>
+ <execution>
+ <id>integration-test</id>
+ <goals>
+ <goal>integration-test</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>verify</id>
+ <goals>
+ <goal>verify</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
@@ -460,9 +493,10 @@
<configuration>
<forkMode>always</forkMode>
<includes>
- <include>**/Test*.java</include>
+ <include>${unittest.include}</include>
</includes>
<excludes>
+ <exclude>${integrationtest.include}</exclude>
<exclude>**/*$*</exclude>
<exclude>${test.exclude.pattern}</exclude>
</excludes>
@@ -472,6 +506,11 @@
</environmentVariables>
</configuration>
</plugin>
+ <!-- Run integration tests with mvn verify -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-failsafe-plugin</artifactId>
+ </plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.6</version>
@@ -683,6 +722,11 @@
<!-- For flaky tests exclusion -->
<test.exclude></test.exclude>
<test.exclude.pattern>**/${test.exclude}.java</test.exclude.pattern>
+
+ <!-- Test inclusion patterns -->
+ <unittest.include>**/Test*.java</unittest.include>
+ <integrationtest.include>**/IntegrationTest*.java</integrationtest.include>
+
</properties>
<!-- Sorted by groups of dependencies then groupId and artifactId -->
@@ -1586,6 +1630,25 @@
<artifactId>apache-rat-plugin</artifactId>
<version>0.6</version>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-report-plugin</artifactId>
+ <version>2.9</version>
+ <reportSets>
+ <reportSet>
+ <id>integration-tests</id>
+ <reports>
+ <report>report-only</report>
+ </reports>
+ <configuration>
+ <outputName>failsafe-report</outputName>
+ <reportsDirectories>
+
<reportsDirectory>${project.build.directory}/failsafe-reports</reportsDirectory>
+ </reportsDirectories>
+ </configuration>
+ </reportSet>
+ </reportSets>
+ </plugin>
</plugins>
</reporting>
</project>