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

@AfterAll JUnit5 methods from extensions are not called when a test is rerun

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 3.0.0-M4
    • None
    • JUnit 5.x support
    • None

    Description

      I'm testing the rerun feature with the failsafe plugin (with -Dfailsafe.rerunFailingTestsCount=2) and I've noticed that my failing tests that are executed again don't have the @AfterAll method of the extension they use executed again. However the extension's @BeforeAll methods are correctly called during the reruns.

      Attachments

        Activity

          People

            Unassigned Unassigned
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: