ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Hatton" <khat...@axiomsystems.com>
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.

Keith


-----Original Message-----
From: Wendy Smoak [mailto:Wendy.Smoak@asu.edu]
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:
http://ant.apache.org/manual/OptionalTasks/junit.html

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"/>
   </path>

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"/>
     </junit>
   </target>

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

Mime
View raw message