ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Sheridan <>
Subject JUnit BatchTest
Date Wed, 23 Oct 2002 15:26:59 GMT
I am compiling all our test code to a single JAR file of JUnit test cases.
Is there a way the nested <batchtest> tag in the JUnit task can take just a
JAR file? The following code runs the test cases just fine, but I would be
prefer to simply specify a single JAR file. Is it possible? Suggestions?
Thanks, Tim.

    <target name="run.ut">
        <mkdir dir="${ut.result.path}\summary"/>
        <mkdir dir="${ut.result.path}\reports"/>

        <junit fork="yes" maxmemory="256m" showoutput="true"
            <classpath refid="test.code.path"/>
            <formatter type="xml"/>
            <batchtest fork="yes" todir="${ut.result.path}\reports">
                <fileset dir="${output.path}">
                    <include name="**/ut/*.class"/>

        <junitreport todir="${ut.result.path}\reports">
            <fileset dir="${ut.result.path}\reports">
                <include name="TEST-*.xml"/>
            <report format="frames" todir="${ut.result.path}\summary"/>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message