Maven release:prepare JUnit. I haven’t done exactly what you want but the key is to use the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> ... exclude the test from normal execution ... </configuration> <executions> <execution> <id>release-phase</id> <phase>release-prepare</phase> <goals> <goal>test</goal> </goals> <configuration> ... fill this in to include the tests you want ... </configuration> </execution> </executions> <plugin> |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.