ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Hatton" <>
Subject RE: Problem with junit task
Date Fri, 25 Apr 2003 09:47:28 GMT
I'd really recommend fork="true" in your <junit> task.


-----Original Message-----
From: Wendy Smoak []
Sent: 25 April 2003 01:11
To: 'Ant Users List'
Subject: Problem with junit task

I recently moved to ant 1.5.3-1 and my junit task has stopped working.  I
have junit 3.8.1.

I have read the docs for the task:

I have the two files on my classpath:

<property name="junit" value="c:\java\junit3.8.1" />
<property name="ant"  value="c:\jakarta\apache-ant-1.5.3-1"/>

   <path id="project.classpath">
      <pathelement location="${junit}\junit.jar"/>
      <pathelement location="${ant}\lib\optional.jar"/>

And my target:

   <target name="test" depends="compile-test">
     <junit showoutput="true">
       <test name="edu.asu.vpia.dao.TestUniDataContactDAO"/>
       <formatter type="plain"/>
       <classpath refid="project.classpath"/>

It used to work, and I don't think I've changed anything.  Does anyone see
what I've missed?

Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management

View raw message