I am very new to ant and junit. I need junit to create xml output so that I can integrate with the city of the team. The tests run just fine, but I don't get any output in the directory that I specify. I am working on Windows 7. I have junit.jar and ant -junit.jar in the ant_home / lib directory. here is my xml build goal:
<target name="onlyjunit-sikuli" description="Execute All sikuli tests">
<delete dir="${automated}/results/sikuli"/>
<mkdir dir="${automated}/results"/>
<mkdir dir="${automated}/results/sikuli"/>
<junit printsummary="yes" showoutput="yes" fork="true" forkmode="once">
<jvmarg value="-Xmx512m"/>
<jvmarg value="-Xms512m"/>
<jvmarg value="-Dsikuli.mode=${sikuli.mode}"/>
<classpath refid="classpath.test"/>
<formatter type="xml"/>
<formatter type="brief" usefile="false"/>
<batchtest if="env.testname" todir="${automated}/results/sikuli">
<fileset dir="${automated}/src">
<include name="**/com/foo/builder/Sikuli/**/${env.testname}.java"/>
</fileset>
</batchtest>
<test unless="env.testname" name="com.foo.builder.Sikuli.SikuliTestSuite"/>
</junit>
<junitreport todir="${automated}/results/sikuli/report">
<fileset dir="${automated}/results/sikuli" includes="*.xml"/>
<report todir="${automated}/results/sikuli/report"/>
</junitreport>
</target>
What am I doing wrong?
source
share