Return-Path: X-Original-To: apmail-maven-issues-archive@minotaur.apache.org Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1A76010B8B for ; Sat, 12 Dec 2015 21:57:47 +0000 (UTC) Received: (qmail 67093 invoked by uid 500); 12 Dec 2015 21:57:46 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 67038 invoked by uid 500); 12 Dec 2015 21:57:46 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 67027 invoked by uid 99); 12 Dec 2015 21:57:46 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Dec 2015 21:57:46 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 984F02C14F7 for ; Sat, 12 Dec 2015 21:57:46 +0000 (UTC) Date: Sat, 12 Dec 2015 21:57:46 +0000 (UTC) From: "Tibor Digana (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (SUREFIRE-1208) Start stream capture before loading tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SUREFIRE-1208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tibor Digana updated SUREFIRE-1208: ----------------------------------- Description: 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. > 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)