Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C83AFE7F8 for ; Sun, 27 Jan 2013 17:51:44 +0000 (UTC) Received: (qmail 23659 invoked by uid 500); 27 Jan 2013 17:51:42 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 23552 invoked by uid 500); 27 Jan 2013 17:51:41 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 23542 invoked by uid 99); 27 Jan 2013 17:51:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Jan 2013 17:51:41 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ljnelson@gmail.com designates 209.85.213.169 as permitted sender) Received: from [209.85.213.169] (HELO mail-ye0-f169.google.com) (209.85.213.169) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Jan 2013 17:51:36 +0000 Received: by mail-ye0-f169.google.com with SMTP id l13so294853yen.28 for ; Sun, 27 Jan 2013 09:51:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=TKVQZILlHjYR5Ohgu1fIJKuKrZWbLnoFjWj4obGZcBM=; b=04HyfWsLzHaJMNUCTltxvdJ2HiX1Kr7+UO2KWtKXOcmvIAWXfC3G8FMmM3osfMmQXH D7boiK01bFZErZ75Ynt9pgOkkg0fU1j5ppWZEDQ4GE62EATaIl4eJsrF88+YIGcrMWxQ YcMevp/LxD/g6IgWgVq+f/G6bUjcM5CFl863//11CZk+c+SmRjhVDJ8mq0AE+2Gm0TbN 2xVt3wyvU0z4Bmb7zgZmkkLODuClizn34ixcNOUYTjJpbvUVNrER9p4jKpIblfbhJ1em 6/qZuSGg4sRneXvB4/E2XzSse0hvwxbelcxGul5bnX+1uGdCvsaAUScb0g8VNQz3JPPJ AGtg== MIME-Version: 1.0 X-Received: by 10.236.190.98 with SMTP id d62mr5832802yhn.8.1359309076015; Sun, 27 Jan 2013 09:51:16 -0800 (PST) Received: by 10.101.46.10 with HTTP; Sun, 27 Jan 2013 09:51:15 -0800 (PST) Date: Sun, 27 Jan 2013 09:51:15 -0800 Message-ID: Subject: Surefire 2.13: minor test failure summary problem From: Laird Nelson To: Maven Users List Content-Type: multipart/alternative; boundary=20cf305e26319da9e004d448ce95 X-Virus-Checked: Checked by ClamAV on apache.org --20cf305e26319da9e004d448ce95 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi; hope this is the right place to start investigating this. I'm using the maven-surefire-plugin version 2.13 coupled with JUnit 4.10 by way of Maven 3.0.4. I recently completed a first pass at refactoring some of my stuff and lots of tests failed. I noticed that the top line of the Surefire summary omits the name of the test that failed. I'll snip sections of the stack below, followed by the summary reproduced in full. I turned off the trimming of stack traces by setting the user property trimStackTrace to false, in case that matters. Tests run: 16, Failures: 6, Errors: 1, Skipped: 0, Time elapsed: 0.102 sec <<< FAILURE! testLotsOfOpenParens(com.foobar.parser.TestCasePostfixTokenizer) Time elapsed: 0.006 sec <<< FAILURE! java.lang.AssertionError: Expected exception: java.lang.IllegalStateException at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectExcept= ion.java:32) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) Then, the summary in full: Results : Failed tests: Expected exception: java.lang.IllegalStateException TestCasePostfixTokenizer.testPrime:255 expected same: was not: TestCasePostfixTokenizer.testAnchoredCatnenationOfNonQualifiedFilters:114 null TestCasePostfixTokenizer.testAnchoredCatnenationOfNonQualifiedFiltersWithWh= itespace:217 expected same: was not: TestCasePostfixTokenizer.testInitialCaret:30 null Expected exception: java.lang.IllegalStateException Tests in error: TestCasePostfixTokenizer.testSimpleFilterAnchoredAtEndWithWhitespace:197 =C2=BB IllegalState Tests run: 16, Failures: 6, Errors: 1, Skipped: 0 Note the first line under "Failed tests:" which omits any mention of which test failed. A similar construct, correctly rendered, occurs towards the bottom of the Failed tests: summary: TestCasePostfixTokenizer.testInitialCaret:30 null Expected exception: java.lang.IllegalStateException I'm assuming that that is what should have been rendered at the top. (Also I don't really know what is going on with the error line: TestCasePostfixTokenizer.testSimpleFilterAnchoredAtEndWithWhitespace:197 = =C2=BB IllegalState Why did it say just "IllegalState", and not "IllegalStateException"?) Should I file a bug? Best, Laird --=20 http://about.me/lairdnelson --20cf305e26319da9e004d448ce95--