[ 
http://jira.codehaus.org/browse/SUREFIRE-214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brett Porter moved MSUREFIRE-21 to SUREFIRE-214:
------------------------------------------------

    Complexity:   (was: Intermediate)
           Key: SUREFIRE-214  (was: MSUREFIRE-21)
       Project: Maven Surefire  (was: Maven 2.x Surefire Plugin)

> Test classes named "Test*.java" are not executed by default while they should
> -----------------------------------------------------------------------------
>
>                 Key: SUREFIRE-214
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-214
>             Project: Maven Surefire
>          Issue Type: Bug
>         Environment: Win2k, Java 1.4.2_04, Maven 2.0 beta 3
>            Reporter: Fabrice BELLINGARD
>         Assigned To: 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

        

Reply via email to