You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2004/08/23 19:45:00 UTC

DO NOT REPLY [Bug 30808] New: - PlainJUnitResultFormatter's output is mangled when test fails

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30808>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30808

PlainJUnitResultFormatter's output is mangled when test fails

           Summary: PlainJUnitResultFormatter's output is mangled when test
                    fails
           Product: Ant
           Version: 1.5.4
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: dplass@tcicredit.com


The culprit is the endTest method, which outputs the test name, then if it 
failed, immediately quits.  In case of a failure, the addFailure method will 
spit out everything needed, including the test name.  To fix, I merely moved 
the wri.print to after the first 'if' statement in endTest.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org