ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacqui Guerrero <jac...@groxis.com>
Subject Junit Output
Date Tue, 24 Jun 2003 16:41:53 GMT
Hi,

I am running junit tests within ant but it seems that no output is written
to the test xml that gets generated for the test cases.  Am I doing
something wrong?  Below is my <junit> task:

<target name="runtests">
    <echo message="Running tests" />
    <junit printsummary="withOutAndErr"
             errorProperty="test.failed"
             failureProperty="test.failed">

        <formatter type="brief" usefile="false" />

        <!-- Start VM arguments -->
        <jvmarg
value="-Dgroxis.grokker.application.dir=d:\Projects\Grokker\exe\basic"/>
        <jvmarg value="-Dgroxis.grokker.common.dir=common"/>
        <jvmarg value="-Dgroxis.grokker.user.dir=c:\Documents and
Settings\jacqui\GrokkerCVS"/>
        <jvmarg value="-Dgroxis.grokker.maps.dir=Maps"/>
        <jvmarg value="-Dgroxis.grokker.settings.dir=Settings"/>
        <jvmarg value="-Dgroxis.grokker.preferences.dir=Preferences"/>
        <jvmarg value="-Dgroxis.grokker.plugins.dir=plugins"/>
        <jvmarg value="-Dgroxis.grokker.document.dir=doc"/>
        <jvmarg value="-Dgroxis.grokker.user.maps.dir=Maps"/>
        <jvmarg value="-Dgroxis.grokker.user.settings.dir=Settings"/>
        <jvmarg value="-Dgroxis.grokker.user.preferences.dir=Preferences"/>
        <jvmarg value="-Dgroxis.grokker.user.plugins.dir=plugins"/>
        <jvmarg value="-Dgroxis.grokker.startUrl=blank.html"/>
        <jvmarg
value="-Dgroxis.grokker.registrationURL=http://www.groxis.com/cgi-bin/regist
er.cgi"/>
        <jvmarg value="-Dgroxis.grokker.resources.dir=resources"/>
        <jvmarg value="-Dgroxis.grokker.jarFile=Grokker.jar"/>
        <jvmarg
value="-Dgroxis.grokker.themes.dir=d:\Projects\Grokker\exe\basic\Themes"/>
        <jvmarg value="-Dgroxis.grokker.webserver=false"/>
        <!-- End VM arguments -->

        <formatter type="xml"/>
        <test fork="yes" todir="${testoutput.dir}"
name="com.groxis.test.product.grokker.BrowsePanelTest" />
        <test fork="yes" todir="${testoutput.dir}"
name="com.groxis.test.product.grokker.MarkNodeTest" />

        <classpath refid="project.class.path" />
    </junit>

    <junitreport todir="${testoutput.dir}">
        <fileset dir=".">
            <include name="TEST-*.xml" />
        </fileset>
        <report format="frames" todir="${testoutput.dir}/suites"/>
    </junitreport>

    <fail message="Tests failed. Check log and/or reports." if="test.failed"
/>
</target>

Thanks,
Jacqui


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message