Return-Path: Delivered-To: apmail-maven-issues-archive@locus.apache.org Received: (qmail 92767 invoked from network); 25 Jul 2008 09:35:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jul 2008 09:35:56 -0000 Received: (qmail 54423 invoked by uid 500); 25 Jul 2008 09:35:55 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 54391 invoked by uid 500); 25 Jul 2008 09:35:55 -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 54380 invoked by uid 99); 25 Jul 2008 09:35:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jul 2008 02:35:55 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.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; Fri, 25 Jul 2008 09:35:01 +0000 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id D5FBA14A8050 for ; Fri, 25 Jul 2008 04:35:26 -0500 (CDT) Message-ID: <27045849.1216978526873.JavaMail.haus-jira@codehaus01.managed.contegix.com> Date: Fri, 25 Jul 2008 04:35:26 -0500 (CDT) From: "Alexander Behrend (JIRA)" To: issues@maven.apache.org Subject: [jira] Created: (SUREFIRE-507) Not able to get a surefire report with failed Junit Tests 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 Not able to get a surefire report with failed Junit Tests --------------------------------------------------------- Key: SUREFIRE-507 URL: http://jira.codehaus.org/browse/SUREFIRE-507 Project: Maven Surefire Issue Type: Bug Components: JUnit 3.x support Affects Versions: 2.4.3 Environment: Ubuntu 8.04, Maven 2.0.9, Surefire Report plugin 2.4.3 Reporter: Alexander Behrend First of all I set up an example Maven Project from quickstart archetype and wrote some JUnit 3 Testdummy methods. One of these dummy test methods is set to fail. After integration of the surefire-report-plugin version 2.4.3 into pom.xml it produces an Maven Build failure. The surefire report-site has a table of statistics with failed tests and successful test. So it makes no sense when Maven (Goal site:site or site:run) fails and reports are shown only if everything was tested successful. Is this a bug or how can I configure my pom correctly to resolve this problem? ==== Failure output: [...] [INFO] [surefire:test] [INFO] Surefire report directory: /home/alexanderbehrend/workspaceJava/junitlesson/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running codersdoc.junitlesson.TemperatureCalculatorTest Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.046 sec <<< FAILURE! Results : Failed tests: testDummyFailure(codersdoc.junitlesson.TemperatureCalculatorTest) Tests run: 5, Failures: 1, Errors: 0, Skipped: 0 [ERROR] Mojo: org.apache.maven.plugins:maven-surefire-plugin:2.4.2:test FAILED for project: codersdoc:junitlesson:jar:0.0.1-SNAPSHOT Reason: There are test failures. Please refer to /home/alexanderbehrend/workspaceJava/junitlesson/target/surefire-reports for the individual test results. [INFO] ------------------------------------------------------------------------ [INFO] For more information, run with the -e flag [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILED [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7 seconds [INFO] Finished at: Fri Jul 25 11:12:01 CEST 2008 [INFO] Final Memory: 5M/25M [INFO] ------------------------------------------------------------------------ -- 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