This shows how to make it not run by default, but to only run with this maven option set on the command line: -Pnative-test
Here is a sample command line:
mvn -o surefire:test -Pnative-test
To set this up, add this to your pom (the includes can be wildcarded):
<profiles> <profile> <id>native-test</id> <activation> <property> <name>native-test</name> </property> </activation> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <includes> <include>**/RunOnlyWithProfile-NativeT.java</include> </includes> </configuration> </plugin> </plugins> </build> </profile> </profiles>
edit: updated tag
No comments:
Post a Comment