I am specifying the <group> parameter to maven-surefire-plugin to
execute a specific test group. However, it seems the
maven-surefire-plugin is ignoring the groups parameter and simply
running all my tests.
Here is what my plugin config in pom looks like:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.8</version>
<configuration>
<groups>prepareTests</groups>
<argLine>-Xms200m -Xmx1500m -XX:PermSize=512m -XX:MaxPermSize=2048m
-XX:+CMSClassUnloadingEnabled</argLine>
<systemProperties>
<property>
<name>foo</name>
<value>bar</value>
</property>
</systemProperties>
<excludes>
<exclude>**/*SystemTest.java</exclude>
<exclude>**/ServerTestBase.java</exclude>
</excludes>
</configuration>
</plugin>
Note that the test in question in a legacy junit test that extends
junit.framework.TestCase and marks certain test methods to be within the
specified test group:
@org.testng.annotations.Test(groups = {"prepareTests"} )
public void testSomething() throws Exception {
}
Any suggestions what I am doing wrong? Is the problem that my test is a
junit test?
--
Regards,
Farrukh Najmi
Web: http://www.wellfleetsoftware.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]