Last active
January 2, 2016 19:18
-
-
Save hascode/8349080 to your computer and use it in GitHub Desktop.
Maven Surefire/Failsave examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<version>2.16</version> | |
<configuration> | |
<excludes> | |
<exclude>it/**</exclude> | |
</excludes> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
<profiles> | |
<profile> | |
<id>skipSelenium</id> | |
<activation> | |
<activeByDefault>true</activeByDefault> | |
</activation> | |
<build> | |
<plugins> | |
<plugin> | |
<artifactId>maven-failsafe-plugin</artifactId> | |
<version>2.14</version> | |
<configuration> | |
<includes> | |
<include>it/**</include> | |
</includes> | |
<excludes> | |
<exclude>**/*SeleniumIntegrationTest.java</exclude> | |
</excludes> | |
</configuration> | |
<executions> | |
<execution> | |
<goals> | |
<goal>integration-test</goal> | |
<goal>verify</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
</profiles> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Didn't work :(. I integrated this in my POM and atlas-integration-test starts all unit-tests and integration-tests and selenium-tests as well. The log says that the failsafe-config looks like this:
I don't get it :(