Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1152

Option rerunFailingTestsCount silently fails with test suites

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        1. flakyproject.zip
          4 kB
          Sean Flanigan

        Activity

          People

            tibordigana Tibor Digana
            sflanigan Sean Flanigan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: