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

Forked JVM terminates with 'halt' when another module's tests fail

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.22.2, 3.0.0-M2
    • Fix Version/s: 3.0.0-M4
    • Component/s: Maven Surefire Plugin
    • Labels:
      None

      Description

      Steps to reproduce:

      Run the attached project with the following command:

      mvn test -T2

      Expected outcome:

      The 'long' modules's test's shutdown hook should be called

       
      Actual outcome:

      The 'long' modules test's shutdown hook is never called

       

      Workaround:

      Use shutdown=exit configuration as below:

                      <plugin>
                          <artifactId>maven-surefire-plugin</artifactId>
                          <configuration>
                              <shutdown>exit</shutdown>
                          </configuration>
                      </plugin>
      

        Attachments

        1. badshutdown.zip
          5 kB
          Mohsen Hariri

          Activity

            People

            • Assignee:
              tibordigana Tibor Digana
              Reporter:
              mohsenhariri Mohsen Hariri
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: