Search google, there's probably something out there. But all I've needed to
know is to put junit.jar in $ANT_HOME/lib and <junit><batchtest>. Here are
some of out tasks FYI:
<!-- run all the junit tests -->
<target name="test">
<junit printsummary="yes" fork="no" haltonfailure="no">
<classpath refid="default.classpath"/>
<formatter type="xml"/>
<batchtest fork="yes" todir="${build.logs}">
<fileset dir="${home.src}/java">
<include name="**/*Test.java"/>
<exclude name="**/LIAuthenticatorTest.java"/>
<exclude name="**/UserManagerTest.java"/>
<exclude name="**/GroupManagerTest.java"/>
<exclude name="**/AclManagerTest.java"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="test-auth">
<sql driver="${oracle.driver}"
url="${oracle.jdbc-url}"
userid="${oracle.username}"
password="${oracle.password}"
onerror="continue"
src="${home.src}/sql/ddl/authmgr.sql"
>
<classpath refid="default.classpath"/>
</sql>
<junit printsummary="yes" fork="no" haltonfailure="no">
<classpath refid="default.classpath"/>
<formatter type="xml"/>
<batchtest fork="yes" todir="${build.logs}">
<fileset dir="${home.src}/java">
<include name="**/LIAuthenticatorTest.java"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="test-account">
<sql driver="${oracle.driver}"
url="${oracle.jdbc-url}"
userid="${oracle.username}"
password="${oracle.password}"
onerror="continue"
src="${home.src}/sql/ddl/accountmgr.sql"
>
<classpath refid="default.classpath"/>
</sql>
<junit printsummary="yes" fork="no" haltonfailure="no">
<classpath refid="default.classpath"/>
<formatter type="xml"/>
<batchtest fork="yes" todir="${build.logs}">
<fileset dir="${home.src}/java">
<include name="**/UserManagerTest.java"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="test-group">
<sql driver="${oracle.driver}"
url="${oracle.jdbc-url}"
userid="${oracle.username}"
password="${oracle.password}"
onerror="continue"
src="${home.src}/sql/ddl/accountmgr.sql"
>
<classpath refid="default.classpath"/>
</sql>
<junit printsummary="yes" fork="no" haltonfailure="no">
<classpath refid="default.classpath"/>
<formatter type="xml"/>
<batchtest fork="yes" todir="${build.logs}">
<fileset dir="${home.src}/java">
<include name="**/GroupManagerTest.java"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="test-acl">
<sql driver="${oracle.driver}"
url="${oracle.jdbc-url}"
userid="${oracle.username}"
password="${oracle.password}"
onerror="continue"
src="${home.src}/sql/ddl/accountmgr.sql"
>
<classpath refid="default.classpath"/>
</sql>
<junit printsummary="yes" fork="no" haltonfailure="no">
<classpath refid="default.classpath"/>
<formatter type="xml"/>
<batchtest fork="yes" todir="${build.logs}">
<fileset dir="${home.src}/java">
<include name="**/AclManagerTest.java"/>
</fileset>
</batchtest>
</junit>
</target>
<!-- transform the tests (requires xalan.jar in $ANT_HOME/lib) -->
<target name="test-report">
<junitreport todir="${build.logs}">
<fileset dir="${build.logs}" includes="TEST-*.xml"/>
<report format="noframes" todir="${build.logs}"/>
</junitreport>
</target>
<!-- run and transform -->
<target name="tests"
depends="test,test-auth,test-account,test-group,test-acl,test-report"/>
> -----Original Message-----
> From: John Smith [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 10, 2002 10:51 PM
> To: [EMAIL PROTECTED]
> Subject: Is there an article, FAQ, tutorial, guide, resource, etc. for
> integrating JUnit with Ant?
>
>
> Is there an article, FAQ, tutorial, guide, resource,
> etc. for integrating JUnit with Ant?
>
> __________________________________________________
> Do You Yahoo!?
> Send FREE video emails in Yahoo! Mail!
> http://promo.yahoo.com/videomail/
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>