[ http://jira.codehaus.org/browse/MNG-1116?page=comments#action_48170 ]
Johnny R. Ruiz III commented on MNG-1116: ----------------------------------------- Can't duplicate this problem. Everything is run on my tests... **/Test*.java", "**/*Test.java", "**/*TestCase.java. :) > Test classes named "Test*.java" are not executed by default while they should > ----------------------------------------------------------------------------- > > Key: MNG-1116 > URL: http://jira.codehaus.org/browse/MNG-1116 > Project: Maven 2 > Type: Bug > Components: maven-surefire-plugin > Versions: 2.0-beta-3 > Environment: Win2k, Java 1.4.2_04, Maven 2.0 beta 3 > Reporter: Fabrice BELLINGARD > Assignee: Johnny R. Ruiz III > Fix For: 2.0-beta-4 > > > Take a project: > MyProject > + src > + test > + java > + foo > + TestExample.java > With the following pom: > <?xml version="1.0" encoding="ISO-8859-1"?> > <project> > <modelVersion>4.0.0</modelVersion> > <groupId>test</groupId> > <artifactId>test</artifactId> > <packaging>jar</packaging> > <name>Test</name> > <version>1.0.0</version> > <dependencies> > <dependency> > <groupId>junit</groupId> > <artifactId>junit</artifactId> > <version>3.8.1</version> > <scope>test</scope> > </dependency> > </dependencies> > </project> > The test class "TestExample.java" gets compiled, but not executed. However, > looking at the code of the plugin, it should be (code found in the #execute > method of the Surefire plugin): > ... > if ( includes == null || includes.size() == 0 ) > { > includes = new ArrayList( Arrays.asList( new String[] { > "**/Test*.java", "**/*Test.java", "**/*TestCase.java" } ) ); > } > ... > If you change the name from "TestExample.java" to "ExampleTest.java", this > works. > Weird! -- 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]
