Bug 34924 - SummaryJUnitResultFormatter does not print the test case name
Summary: SummaryJUnitResultFormatter does not print the test case name
Status: RESOLVED DUPLICATE of bug 35866
Alias: None
Product: Ant
Classification: Unclassified
Component: Optional Tasks (show other bugs)
Version: 1.6.3
Hardware: Other other
: P2 normal (vote)
Target Milestone: ---
Assignee: Ant Notifications List
Depends on:
Reported: 2005-05-15 19:08 UTC by Vijay Aravamudhan
Modified: 2009-07-30 06:06 UTC (History)
1 user (show)


Note You need to log in before you can comment on or make changes to this bug.
Description Vijay Aravamudhan 2005-05-15 19:08:00 UTC
in most of the projects that i have worked on using ant, the devs have felt that
they need ant to only show the summary of test results. To achieve this, we use
the 'formatter="plain"' specification with summary turned on. But this just
prints the summary without printing the actual test case name. It would be
really helpful if this could be done by default - or at least turned on with
some switch.
Comment 1 Matt Benson 2007-03-06 13:32:47 UTC
similar to or same as bug 24106
Comment 2 Bruno Harbulot 2008-08-11 06:42:53 UTC

Having the same problem, I think a quick solution in the plain formatter would be to change: src/main/org/apache/tools/ant/taskdefs/optional/junit/PlainJUnitResultFormatter.java, around line 188 from:

   wri.print("Testcase: "
      + JUnitVersionHelper.getTestCaseName(test));


   wri.print("Testcase: "
      + JUnitVersionHelper.getTestCaseClassName(test) + "."
      + JUnitVersionHelper.getTestCaseName(test));

Best wishes,

Comment 3 Stefan Bodewig 2009-07-30 06:06:40 UTC

*** This bug has been marked as a duplicate of bug 35866 ***