ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
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 <billy.bacon@thirty3.net> 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.

Stefan

Mime
View raw message