You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Andreas Guther (JIRA)" <ji...@codehaus.org> on 2006/05/02 18:28:40 UTC

[jira] Created: (MSUREFIRE-97) TestNG tests are not executed if invoked by */*Test.java naming pattern

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


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


[jira] Closed: (MSUREFIRE-97) TestNG tests are not executed if invoked by */*Test.java naming pattern

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSUREFIRE-97?page=all ]
     
Brett Porter closed MSUREFIRE-97:
---------------------------------

     Assign To: Brett Porter
    Resolution: Fixed

> 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
>     Assignee: Brett Porter
>      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


[jira] Updated: (MSUREFIRE-97) TestNG tests are not executed if invoked by */*Test.java naming pattern

Posted by "Andreas Guther (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSUREFIRE-97?page=all ]

Andreas Guther updated MSUREFIRE-97:
------------------------------------

    Attachment: my-app-2.zip

> 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
>  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


[jira] Updated: (MSUREFIRE-97) TestNG tests are not executed if invoked by */*Test.java naming pattern

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ 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


[jira] Updated: (SUREFIRE-83) TestNG tests are not executed if invoked by */*Test.java naming pattern

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-83?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated SUREFIRE-83:
---------------------------------

    Fix Version/s: 2.0 (2.2 plugin)

> TestNG tests are not executed if invoked by */*Test.java naming pattern
> -----------------------------------------------------------------------
>
>                 Key: SUREFIRE-83
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-83
>             Project: Maven Surefire
>          Issue Type: Bug
>         Environment: Windows XP, Maven 2.0.4, Surefire from snapshot server
>            Reporter: Andreas Guther
>         Assigned To: Brett Porter
>             Fix For: 2.0 (2.2 plugin)
>
>         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