[ http://jira.codehaus.org/browse/MSUREFIRE-97?page=all ]
Brett Porter updated MSUREFIRE-97:
----------------------------------
Fix Version: 2.2
> TestNG tests are not executed if invoked by */*Test.java naming pattern
> -----------------------------------------------------------------------
>
> Key: MSUREFIRE-97
> URL: http://jira.codehaus.org/browse/MSUREFIRE-97
> Project: Maven 2.x Surefire Plugin
> Type: Bug
> Environment: Windows XP, Maven 2.0.4, Surefire from snapshot server
> Reporter: Andreas Guther
> Fix For: 2.2
> Attachments: my-app-2.zip
>
>
> I created an example project and added two testng tests, one ending with
> *Test.java, one with a not Test containing name. Surefire seems to be able
> to find the test but does not execute the tests inside the class (one should
> succeed, one should fail). The console output is below. I will attach my
> example project in zip format to the issue report.
> C:\workspace\my-app>mvn test
> [INFO] Scanning for projects...
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building Maven Quick Start Archetype
> [INFO] task-segment: [test]
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> Compiling 2 source files to C:\workspace\my-app\target\test-classes
> [INFO] [surefire:test]
> [INFO] Surefire report directory: C:\workspace\my-app\target\surefire-reports
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Running com.mycompany.app.AppTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
> Running com.mycompany.app.TestNgJavaOneTngTest
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
> Results :
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Tue May 02 07:14:11 PDT 2006
> [INFO] Final Memory: 4M/508M
> [INFO]
> ------------------------------------------------------------------------
--
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