You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Stefan Bodewig <bo...@apache.org> on 2003/05/09 07:45:13 UTC

Re: Determining if your unit tests pass/fail when running them from Ant

On Thu, 08 May 2003, Billy Bacon <bi...@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