Does your ant task for the tests have haltonfailure="yes"? If so, it will stop running tests after a failure.
Rachel -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 7:27 AM To: [EMAIL PROTECTED] Subject: Ant terminates when a test fails Hi, I'm a little lost with this problem now and hoping someone can shed any light on it. I have a TestCase with two tests running via the Servlet and if all is well, there is no problem. However, if the first test fails then the other test is not run (nor any tests in other test cases) and Ant terminates with a BUILD FAILED messge before running my test report task (and junit stating that one test was run and that it failed). If I run Ant in verbose mode then I get the following stack trace: D:\SourceControl\xchanging\build.xml:240: Test uk.co.agora.xchanging.xcellence.XcellenceObjectTestCase failed at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.jav a:420) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.jav a:380) at org.apache.tools.ant.Task.perform(Task.java:217) at org.apache.tools.ant.Target.execute(Target.java:184) at org.apache.tools.ant.Target.performTasks(Target.java:202) at org.apache.tools.ant.Project.executeTarget(Project.java:601) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:266) at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:120) at org.apache.tools.ant.Task.perform(Task.java:217) at org.apache.tools.ant.Target.execute(Target.java:184) at org.apache.tools.ant.Target.performTasks(Target.java:202) at org.apache.tools.ant.Project.executeTarget(Project.java:601) at org.apache.tools.ant.Project.executeTargets(Project.java:560) at org.apache.tools.ant.Main.runBuild(Main.java:454) at org.apache.tools.ant.Main.start(Main.java:153) at org.apache.tools.ant.Main.main(Main.java:176) I can't for the life of me figure out what's, and just hoping that I'm doing something incorrect with cactus (I'm new to Cactus, but used junit quite a bit). Thanks in advance, Sean -------------------------------------------------- Dr Sean Radford, MBBS, MSc Senior Consultant Agora Professional Services Ltd [EMAIL PROTECTED] http://www.agora.co.uk -------------------------------------------------- Agora Professional Services is an entrepreneurial consulting firm specialising in e-Business and innovative solutions since 1995. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
