You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stuart Douglas (Jira)" <ji...@apache.org> on 2021/01/18 22:07:00 UTC

[jira] [Created] (SUREFIRE-1877) Can't print from a shutdown hook

Stuart Douglas created SUREFIRE-1877:
----------------------------------------

             Summary: Can't print from a shutdown hook
                 Key: SUREFIRE-1877
                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1877
             Project: Maven Surefire
          Issue Type: Bug
    Affects Versions: 3.0.0-M5
            Reporter: Stuart Douglas


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.

 

 

 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)