ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: JUnit tests fail -> build fail
Date Fri, 03 Aug 2001 08:00:18 GMT
On Fri, 3 Aug 2001, Klara Ward <> wrote:

> Is there some way you can make build fail if the junit tests fail?
> You can set haltonfailure, bur I want to run all tests.

In Ant 1.4 (due to be ready rather soonish) you can set a property on
test failure - add to that a fail task in a target that only runs if
the property is set and you should be done.

> The reason I want this is because I run cruisecontrol, and it's not
> really good to recieve a message "build successful" when tests have
> failed.

The property has been added for just that reason (I think it was CC's
Robert Watkins who made the request).


View raw message