ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitry Macsema <ledes...@amur.ru>
Subject junit won't show detailed error
Date Fri, 25 Oct 2002 11:10:21 GMT

If I comment out the place where test classes reside, ant will print
the following (it runs fine if I don't comment out it):

test:
    [junit] Running ledestin.test.TestSetup
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

BUILD FAILED
file:c:/home/me/projects/test/build.xml:6: Test ledestin.test.TestSetup failed

ant -v gives the following:
BUILD FAILED
file:c:/home/me/projects/test/build.xml:6: Test ledestin.test.TestSetup failed
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitT
ask.java:568)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitT
ask.java:527)
        at org.apache.tools.ant.Task.perform(Task.java:317)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:334)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
        at org.apache.tools.ant.Main.runBuild(Main.java:610)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)

The project's build.xml:
<project name="junit test" default="test">
        <target name="compile">
                <javac srcdir="src" destdir="classes" />
        </target>
        <target name="test" depends="compile">
                <junit filtertrace="no" haltonfailure="yes" printsummary="withOutAndErr">
                        <classpath>
                                <pathelement path="${java.class.path}"/>
                                <!-- <pathelement location="classes"/> -->
                        </classpath>
                        <test name="ledestin.test.TestSetup" />
                </junit>
        </target>
</project>

-- 
Best regards,
 Dmitry                          mailto:ledestin@amur.ru


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message