<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/*Util.java</exclude>
</excludes>
</configuration>
</plugin>
Thursday, January 10, 2013
"No runnable methods" when using Maven for a class that shouldn't be Tested
I recently ran into a problem doing a Maven build where I had a utility class to be used for my Test cases. Adding the @Ignore tag didn't seem to help. It turns out the solution was simply to add this plugin entry to my pom.xml file as my file had the suffix Util.java:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment