[
http://jira.codehaus.org/browse/SUREFIRE-645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=250895#action_250895
]
Stefan Birkner commented on SUREFIRE-645:
-----------------------------------------
The bug still exists for JUnit3 tests.
If there's a JUnit 3 test class without any runnable methods, the test fails.
The output to the command line is:
Failed tests:
warning(junit.framework.TestSuite$1)
The supplied patch extends this message for all failures. For the failure at
hand, the output to the command line will be:
Failed tests:
warning(junit.framework.TestSuite$1): No tests found in
junit.norunnabletests.BasicTest
I create a new patch, that fixes this bug.
> 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