Return-Path: Delivered-To: apmail-maven-issues-archive@locus.apache.org Received: (qmail 63285 invoked from network); 6 Feb 2008 23:42:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Feb 2008 23:42:59 -0000 Received: (qmail 64193 invoked by uid 500); 6 Feb 2008 23:42:50 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 64158 invoked by uid 500); 6 Feb 2008 23:42:50 -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 64147 invoked by uid 99); 6 Feb 2008 23:42:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Feb 2008 15:42:50 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [63.246.2.115] (HELO codehaus01.managed.contegix.com) (63.246.2.115) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Feb 2008 23:42:35 +0000 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id 4094714A803D for ; Wed, 6 Feb 2008 17:42:28 -0600 (CST) Message-ID: <13228345.1202341348261.JavaMail.haus-jira@codehaus01.managed.contegix.com> Date: Wed, 6 Feb 2008 17:42:28 -0600 (CST) From: "Benjamin Bentmann (JIRA)" To: issues@maven.apache.org Subject: [jira] Commented: (SUREFIRE-446) Surefire fails to capture TestNG results when forkMode=always In-Reply-To: <24284636.1201637038025.JavaMail.haus-jira@codehaus01.managed.contegix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://jira.codehaus.org/browse/SUREFIRE-446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_122701 ] Benjamin Bentmann commented on SUREFIRE-446: -------------------------------------------- bq. This certainly explains how Benjamin found this bug... ;-) What should I say, I am just evil minded ;-) bq. it isn't necessarily safe to do so The same is true with running tests in parallel. If your test suite contains non-thread-safe method calls, well, multi-threaded tests are a bad idea, too. So, is Surefire going to drop its parameter "parallel" because an incompotent user could make the tests errorneously fail? I wouldn't feel quite comfortable with a build tool that restricts me from doing something just because it *might* not work although - for a special use-case - it *will* work. bq. Short of that, it's hard to see how we can hack it into Surefire on top of the framework that's already in place. Naively spoken, I would expect that forkMode=always behaves as if {{TestNGDirectoryTestSuite}} found only a single test class. > Surefire fails to capture TestNG results when forkMode=always > ------------------------------------------------------------- > > Key: SUREFIRE-446 > URL: http://jira.codehaus.org/browse/SUREFIRE-446 > Project: Maven Surefire > Issue Type: Bug > Components: process forking > Affects Versions: 2.4 > Environment: Maven 2.0.8, JDK 1.5.0_12, WinXP > Reporter: Benjamin Bentmann > Fix For: 2.x > > Attachments: testng-fork-mode-it.patch > > > The interplay between {{surefire.Surefire}} and {{testng.TestNGDirectoryTestSuite}} does not properly notify the ReportManager such that it reports 0 executed tests after the end of the day. IT to reproduce attached. > Also confirmed against 2.5-SNAPSHOT. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira