ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <>
Subject Re: Junit task MIA, but pvcs task works fine
Date Fri, 16 May 2003 17:34:48 GMT

here is a sample if what I had used.
Yes Junit.jar and optional.jar are on CLASSPATH beforehand

<target name="test-run" description="just runs the tests, nothing more">
<junit haltonfailure="no">

<classpath refid="classpath"/>
<batchtest fork="yes" todir="${reports}">
 <formatter type="xml"/>
 <fileset dir="${compile.outdir}">
    <include name="**/*TestCase.class"/>
    <exclude name="**/TestAll.class"/>



----- Original Message -----
From: "Tambascio, Larry" <>
To: <>
Sent: Friday, May 16, 2003 1:23 PM
Subject: Junit task MIA, but pvcs task works fine

> Greetings,
> I have a number of JUnit tests that work nicely stand alone, and I thought
> should start to include these tests in the build.  The problem is that I
> the error "Could not create task of type: junit.", and it makes comments
> about where to put the optional jar file.  The optional.jar file is in
> ${ANT_HOME}/lib, and after perusing the archives, I also put the junit jar
> file in there too, to no avail.
> Here's the target.  I am using version 1.4.1 of ant.
> <target name="test">
> <junit haltonfailure="on" printsummary="on">
> <classpath refid="class.path" />
> <formatter type="plain" />
> <test
> name="com.ironmountain.digitalarchive.evaa.onboarding.OnBoardingSuite" />
> </junit>
> </target>
> Just to be sure that the optional jar is THERE and usable, I stuck a PVCS
> get in there, and that did work.  So the optional jar is where it should
> and usable.  I'm not sure what else to try at this point.
> TIA!!
> -Larry
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View raw message