You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2005/07/17 00:16:57 UTC

[jira] Updated: (MNG-572) surefire does not run tests

     [ http://jira.codehaus.org/browse/MNG-572?page=all ]

Brett Porter updated MNG-572:
-----------------------------

    Fix Version: 2.0-beta-1

> 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
>      Fix For: 2.0-beta-1

>
>
> 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org