You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stefan Birkner (JIRA)" <ji...@codehaus.org> on 2011/01/08 19:59:58 UTC

[jira] Commented: (SUREFIRE-645) Meaningful message when test has no runnable methods

    [ http://jira.codehaus.org/browse/SUREFIRE-645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=250884#action_250884 ] 

Stefan Birkner commented on SUREFIRE-645:
-----------------------------------------

The test case must be a JUnit4 test:
  public class BasicTest
  {
  }

The bug can be reproduced with version 2.6 of Surefire. The bug has been fixed in Version 2.7, which doesn't try to run the test.

> Meaningful message when test has no runnable methods
> ----------------------------------------------------
>
>                 Key: SUREFIRE-645
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-645
>             Project: Maven Surefire
>          Issue Type: Improvement
>          Components: Maven Surefire Plugin
>    Affects Versions: Backlog
>            Reporter: Stefan Birkner
>             Fix For: 2.7.2
>
>         Attachments: extendedErrorMessage.patch, surefire645_revised.patch
>
>
> If there's a test class without any runnable methods, the test fails with an error. The output to the command line is:
> Tests in error: 
>   initializationError(EmptyTest)
> The supplied patch extends this message for all errors. For the error at hand, the output to the command line will be:
> Tests in error: 
>   initializationError(EmptyTest): No runnable methods

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