surefire does not run tests --------------------------- Key: MNG-572 URL: http://jira.codehaus.org/browse/MNG-572 Project: Maven 2 Type: Bug Components: maven-plugins Versions: 2.0-alpha-3 Environment: Windows 2000 JDK 1.4.2 CygWin Reporter: larry Priority: Blocker
I have three unit tests, one is extending BaseTestCase, in src/test/java named *Test.java. I haven't configured surefire or any plugins in the pom.xml. I have junit as a dependency. When I run m2 test I see this in the console: [INFO] [compiler:testCompile] Compiling 4 source files to xxx Results : [surefire] Tests run: 0, Failures: 0, Errors: 0 m2 compiled the tests but surefire did not run any of them. Removing two of the tests makes surefire run one of the tests. And adding <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <goals> <goal> <id>test</id> <configuration> <includes> <include implementation="java.lang.String">**/*Test.java</include> </includes> </configuration> </goal> </goals> </plugin> </plugins> Makes it run two of them, with one disabled. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]