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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.22.2, 3.0.0-M2
    • 3.0.0-M4
    • Maven Surefire Plugin
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: