[
https://issues.apache.org/jira/browse/SUREFIRE-1208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15054689#comment-15054689
]
Hudson commented on SUREFIRE-1208:
----------------------------------
UNSTABLE: Integrated in maven-surefire #1524 (See
[https://builds.apache.org/job/maven-surefire/1524/])
[SUREFIRE-1208] Start stream capture before loading tests (tibor17: rev
9cefb7ba43b2550f3ede2952b47d079463c33328)
*
surefire-providers/surefire-junit4/src/main/java/org/apache/maven/surefire/junit4/JUnit4Provider.java
*
surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGDirectoryTestSuite.java
*
surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNgTestSuite.java
*
surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGXmlTestSuite.java
*
surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGExecutor.java
*
surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/ConfigurationAwareTestNGReporter.java
*
surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGProvider.java
*
surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/JUnitCoreProvider.java
> Start stream capture before loading tests
> -----------------------------------------
>
> Key: SUREFIRE-1208
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1208
> Project: Maven Surefire
> Issue Type: Bug
> Components: Junit 4.7+ (parallel) support, Junit 4.x support, TestNG
> support
> Affects Versions: 2.19
> Reporter: Tibor Digana
> Assignee: Tibor Digana
> Fix For: 2.19.1
>
>
> If, when scanClassPath() runs, a class is loaded and that loading process
> produces a log (via log4j in our case), the logging framework creates its
> console appender around the current stdout stream, before the stream is
> replaced to start the redirection of stdout and stderr to a file (when
> redirectTestOutputToFile is used). The consequences are that stdout gets
> flooded with logs (i.e. redirectTestOutputToFile doesn't work).
> Scanning the classpath after the capture is started, fixed the issue.
> I believe that other providers have the same issue.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)