Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.5.3 (2.1.3 plugin), 2.0 (2.2 plugin)
-
Fix Version/s: 2.3
-
Component/s: None
-
Labels:None
Description
Instead of
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.apache.maven.wagon.providers.webdav.WebDavWagonTest
17:59:47.546 EVENT Stopping Acceptor ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=10007]
17:59:47.546 EVENT Stopped SocketListener on 0.0.0.0:10007
17:59:47.546 EVENT Stopped ServletHttpContext[/dav]
17:59:47.546 EVENT Stopped org.mortbay.jetty.Server@b307f0
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.406 sec
show just
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.apache.maven.wagon.providers.webdav.WebDavWagonTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.406 sec
Issue Links
- is duplicated by
-
SUREFIRE-182
console output of tests should be catched in text files like in Maven 1
-
- relates to
-
SUREFIRE-315
The redirectTestOutputToFile does not handle output before tests, nor does it handle capturing output on both streams
-
I've patched surefire-booter as well as maven-surefire-plugin to exhibit this behavior. The plugin now accepts a boolean parameter, consoleOutputToFile, that if set to true, all stdouot from tests are placed in a file. The file is console_output.txt and is placed in ${project.build.directory}/surefire-reports.