ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43466] New: - Failure in tearDown does not result in a failed test run
Date Mon, 24 Sep 2007 20:33:06 GMT
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=43466>.
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=43466

           Summary: Failure in tearDown does not result in a failed test run
           Product: Ant
           Version: unspecified
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: AntUnit
        AssignedTo: dev@ant.apache.org
        ReportedBy: david.jackman@fastsearch.com


Create a build script like the following:

<project name="failed-teardown" default="all"
         xmlns:au="antlib:org.apache.ant.antunit">
  <target name="all">
    <au:antunit>
      <file file="${ant.file}" />
      <au:plainlistener/>
    </au:antunit>
  </target>

  <target name="setUp">
    <echo>setUp</echo>
  </target>

  <target name="test1">
    <echo>test1</echo>
  </target>

  <target name="tearDown">
    <echo>tearDown</echo>
    <fail message="Failure in tearDown" />
  </target>
</project>

Running this test should result in a failed test run, but the test run succeeds
and the failure in tearDown is lost.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message