Return-Path: X-Original-To: apmail-ant-notifications-archive@minotaur.apache.org Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8435B10368 for ; Wed, 8 May 2013 07:14:50 +0000 (UTC) Received: (qmail 65055 invoked by uid 500); 8 May 2013 07:14:50 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 64880 invoked by uid 500); 8 May 2013 07:14:45 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 64843 invoked by uid 99); 8 May 2013 07:14:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 May 2013 07:14:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 May 2013 07:14:38 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id 41BF17CFF; Wed, 8 May 2013 07:14:17 +0000 (UTC) From: bugzilla@apache.org To: notifications@ant.apache.org Subject: [Bug 54935] New: JUnit task: support listeners that are not formatters Date: Wed, 08 May 2013 07:14:16 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ant X-Bugzilla-Component: Optional Tasks X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: skissane@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: notifications@ant.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform bug_status bug_severity priority component assigned_to reporter classification Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=54935 Bug ID: 54935 Summary: JUnit task: support listeners that are not formatters Product: Ant Version: 1.8.4 Hardware: PC Status: NEW Severity: enhancement Priority: P2 Component: Optional Tasks Assignee: notifications@ant.apache.org Reporter: skissane@gmail.com Classification: Unclassified The Ant JUnit task only supporters JUnit listeners that are formatters. It doesn't support declaring custom listeners that are not formatters. Use case: Trying to use Sonar Jacoco listener https://github.com/SonarSource/sonar-java/blob/1.2/sonar-jacoco-listeners/src/main/java/org/sonar/java/jacoco/JUnitListener.java which makes Jacoco start a new session for each test case executed, so we get separate code coverage statistics for each test case. specifiy org.sonar.java.jacoco.JUnitListener as a formatter fails, since it is not a JUnitResultFormatter. Maven Surefire plugin can do this, see https://maven.apache.org/surefire/maven-surefire-plugin/examples/junit.html section "Using custom listeners and reporters" Proposed solution: Add nested element to enable configuring a custom listener Add listener= command line argument to the JUnitRunner for use in fork mode -- You are receiving this mail because: You are the assignee for the bug.