You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Sean Flanigan (JIRA)" <ji...@apache.org> on 2015/04/10 07:11:12 UTC

[jira] [Updated] (SUREFIRE-1152) Option rerunFailingTestsCount silently fails with test suites

     [ https://issues.apache.org/jira/browse/SUREFIRE-1152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Flanigan updated SUREFIRE-1152:
------------------------------------
    Attachment: flakyproject.zip

Sample project demonstrating the problem in surefire and failsafe.  

(Make sure you extract the zip to an empty directory.)

> Option rerunFailingTestsCount silently fails with test suites
> -------------------------------------------------------------
>
>                 Key: SUREFIRE-1152
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1152
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Failsafe Plugin, Maven Surefire Plugin
>    Affects Versions: 2.18.1
>            Reporter: Sean Flanigan
>         Attachments: flakyproject.zip
>
>
> After a test failure (with {{rerunFailingTestsCount > 0}}), the {{JUnit4*Provider.executeWithRerun}} calls {{execute}} again with a list of the failing {{testMethods}}, but {{JUnit4*Provider.execute}} silently fails to find the requested methods.
> When {{testClass}} is actually a test suite class, it may not contain any methods at all (other than inherited {{java.lang.Object}} methods).  The {{execute}} method iterates through the {{java.lang.Object}} methods, never finds a match for the {{testMethods}}, and silently fails to execute anything.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)