Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 23591 invoked from network); 8 May 2003 17:55:28 -0000 Received: from h001.c001.snv.cp.net (HELO c001.snv.cp.net) (209.228.32.115) by daedalus.apache.org with SMTP; 8 May 2003 17:55:28 -0000 Received: (cpmta 8709 invoked from network); 8 May 2003 10:55:32 -0700 Received: from 192.18.98.45 (HELO ?129.147.43.29?) by smtp.register-admin.com (209.228.32.115) with SMTP; 8 May 2003 10:55:32 -0700 X-Sent: 8 May 2003 17:55:32 GMT User-Agent: Microsoft-Entourage/10.1.1.2418 Date: Thu, 08 May 2003 11:55:33 -0600 Subject: Determining if your unit tests pass/fail when running them from Ant From: Billy Bacon To: Ant Users List Message-ID: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I'm in the process of writing a shell script (for a cron job) that will call my Ant targets on a nightly basis. What I'd like to do is prevent my war file from being deployed to my production server if when my JUnit tests are executed, 1 or more fail. Is there a way to determine if my unit tests fail when executed through Ant? Is there a return value that I should look for? I need to detect something like this through a shell script.... Any suggestions would be greatly appreciated. Thank you - Billy -