ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Derek Longmuir <>
Subject Help with JUnit fork and haltonfailure
Date Wed, 20 Jun 2001 15:27:48 GMT
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.

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

View raw message