Re: How can I get the junit task to run all tasks first, then fail the build if necessary, rather than aborting as soon as one of the tests fails?
Monday, February 18, 2002 02:17 PM
The trick is to set haltonerror and haltonfailure both to "off" and then use
failureproperty="testfailed" both. That should work in your case. In the nightly builds of Ant there is a conditional added to the task which eliminates the need for the two-target hack, but still allows the build to fail when tests fail and have post-test processing.