[ http://jira.codehaus.org/browse/MSUREFIRE-21?page=all ]
Maria Odea Ching moved MNG-1116 to MSUREFIRE-21:
------------------------------------------------
Version: (was: 2.0-beta-3)
Component: (was: maven-surefire-plugin)
Workflow: jira (was: Maven)
Key: MSUREFIRE-21 (was: MNG-1116)
Project: Maven 2.x Surefire Plugin (was: Maven 2)
> Test classes named "Test*.java" are not executed by default while they should
> -----------------------------------------------------------------------------
>
> Key: MSUREFIRE-21
> URL: http://jira.codehaus.org/browse/MSUREFIRE-21
> Project: Maven 2.x Surefire Plugin
> Type: Bug
> Environment: Win2k, Java 1.4.2_04, Maven 2.0 beta 3
> Reporter: Fabrice BELLINGARD
> Assignee: Johnny R. Ruiz III
>
>
> 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]