Last active
August 29, 2015 13:56
-
-
Save rschumm/8803701 to your computer and use it in GitHub Desktop.
Integration-Test maven
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
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<version>2.16</version> | |
<executions> | |
<execution> | |
<id>default-test</id> | |
<configuration> | |
<excludes> | |
<exclude>**/*Rest*</exclude> | |
</excludes> | |
</configuration> | |
</execution> | |
<execution> | |
<id>integration-test</id> | |
<phase>integration-test</phase> | |
<goals> | |
<goal>test</goal> | |
</goals> | |
<configuration> | |
<includes> | |
<include>**/*Rest*</include> | |
</includes> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> |
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
<profile> | |
<id>IntegrationTests</id> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<version>2.16</version> | |
<executions> | |
<execution> | |
<phase>integration-test</phase> | |
<goals> | |
<goal>test</goal> | |
</goals> | |
<configuration> | |
<excludes> | |
<exclude>none</exclude> | |
</excludes> | |
<includes> | |
<include>**/*Rest*</include> | |
</includes> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
laufenlassen mit mvn test bzw. mvn integration-test
(so laufen aber bei einem mvn install die int-Tests mit - wenn man sie nicht will, muss man mvn test laufenlassen).
oder dann mit profil:
der Trick da ist das none, welches das vererbte exclude vom Haupt-Plugin-überschreibt.
oder direkt mit
mvn -Dtest=Rest test