-
Notifications
You must be signed in to change notification settings - Fork 2
Home
The Maven ITBlast Plugin allows you to run your integration tests on multiple application servers in one build using the Cargo and Surefire Maven 2 plugins internally. The motivations for this plugin were to eliminate hundreds of POM XML for integration tests and add a few features like multiple container runs.
You can download the jars, source, and javadocs from the Maven 2 repository:
bq. http://twdata-m2-repository.googlecode.com/svn/org/twdata/maven/maven-itblast-plugin/
This example shows how integration tests and unit tests can sit side-by-side by placing integration tests in packages starting with “it.”. It also executes the integration tests against Tomcat 5.x, Jetty 6.x, JBoss 4.2.x, and Resin 3.×. This configuration would be placed in your project’s pom.xml file.
<build> <plugins> <plugin> <groupId>org.twdata.maven</groupId> <artifactId>maven-itblast-plugin</artifactId> <version>0.3</version> <executions> <execution> <phase>integration-test</phase> <goals> <goal>execute</goal> </goals> <configuration> <containers>tomcat5x,jetty6x,jboss42x,resin3x</containers> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-surefire-plugin</artifactId> <configuration> <excludes> <exclude>it/**</exclude> <exclude>**/*$*</exclude> </excludes> </configuration> </plugin> </plugins> </build>
Add this to your pom.xml:
twdata-m2-repository
twdata.org Maven 2 Repository
http://twdata-m2-repository.googlecode.com/svn/