ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Determining if your unit tests pass/fail when running them from Ant
Date Fri, 09 May 2003 05:45:13 GMT
On Thu, 08 May 2003, Billy Bacon <> wrote:

> Is there a way to determine if my unit tests fail when executed
> through Ant?

I'll assume that you use the <junit> task.

First of all, you could make <junit> stop the complete build process
upon failures - see the haltonerror and haltonfailure attributes.

The alternative is to set a property if an error or failure, see the
errorproperty and failureproperty attributes.


View raw message