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

Can't print from a shutdown hook

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0-M5
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      In surefire 3.0.0-M5 any test output from a shutdown hook is not printed to the console, and is effectively lost, while this worked in 2.22.

       

      For some background my use case is automatically generating Jacoco reports in a shutdown hook without needing to configure a heap of different maven tasks (so that when using Quarkus Jacoco will 'just work' with no additional config required), my code just waits for the Jacoco agent to finish writing its data, then generates the report. If something goes wrong with this process any error is lost.

       

       

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                swd847 Stuart Douglas
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: