mercredi 15 mars 2017

Ant Junit not showing any details

I am using ant version 1.9.7 annd junit 4.12. My build.xml looks like this:

<target name="run-junit" depends="init, compile, compile-junit">
    <junit printsummary="yes" >
        <formatter type="xml"/>
        <classpath><pathelement location="lib/junit-4.12.jar"/></classpath>
        <batchtest fork="yes" todir="${out.dir}">
            <fileset dir="${bin.dir}">
                <include name="**/*Test.class"/>
            </fileset>
        </batchtest>
    </junit>
</target>

When running ant run-junit in console it just gives me:

[junit] Running at.abc.def.ghi.ABCTest [junit] Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.065 sec [junit] Test at.abc.def.ghi.ABCTest FAILED

But no more details. How can I resolve this?

Aucun commentaire:

Enregistrer un commentaire