Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 21450 invoked by uid 500); 20 Jun 2001 15:31:33 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 21390 invoked from network); 20 Jun 2001 15:31:21 -0000 Message-ID: <39AE24A17644BC4D94E445ACBC423C82013104@mail.echoworx.com> From: Derek Longmuir To: "'ant-user@jakarta.apache.org'" Subject: Help with JUnit fork and haltonfailure Date: Wed, 20 Jun 2001 11:27:48 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C0F99D.8FCC0C70" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C0F99D.8FCC0C70 Content-Type: text/plain; charset="iso-8859-1" Hi all, My build is still successful, even if my forked JUnit tests fail with haltonfailure="yes". If I remove the fork, then it works, and I get a "BUILD FAILED". With the fork, I get a "BUILD SUCCESSFUL", even with failures. I am running on Redhat, JDK 1.3.0 from Sun. Here is a piece of my build.xml. Does anyone have any ideas? Thanks, Derek. ---- ------_=_NextPart_001_01C0F99D.8FCC0C70 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Help with JUnit fork and haltonfailure

Hi all,

My build is still successful, even if my forked JUnit = tests fail with haltonfailure=3D"yes". If I remove the fork, = then it works, and I get a "BUILD FAILED". With the fork, I = get a "BUILD SUCCESSFUL", even with failures.

I am running on Redhat, JDK 1.3.0 from Sun.

Here is a piece of my build.xml. Does anyone have any = ideas?

Thanks, Derek.

----
    <target = name=3D"test" depends=3D"init" = description=3D"Run unit tests">
        = <delete dir=3D"${junit.results}"/>
        <mkdir = dir=3D"${junit.results}"/>
        <echo = message=3D"Running unit tests..."/>
        <junit = fork=3D"yes" haltonfailure=3D"yes">
          &nb= sp; <classpath >
          &nb= sp;     <path refid=3D"classpath" = />
          &nb= sp;     <pathelement = location=3D"${junit.build}" />
        =         <pathelement = path=3D"./lib/httpunit.jar:./lib/Tidy.jar" />
          &nb= sp; </classpath>
          &nb= sp; <formatter type=3D"plain" usefile=3D"false" = />
          &nb= sp; <formatter type=3D"xml" />
          &nb= sp; <test name=3D"test.MasterTest" = todir=3D"${junit.results}" haltonfailure=3D"yes" = />
        = </junit>
    </target>

------_=_NextPart_001_01C0F99D.8FCC0C70--