ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knuplesch, Juergen" <>
Subject AW: How can I figure out what JUnit test case is failing?
Date Thu, 04 Dec 2008 06:47:48 GMT
Use the <junitreport> to get the results in HTML. 

Jürgen Knuplesch          
icon Systemhaus GmbH                Tel. +49 711 806098-275
Sophienstraße 40                    
D-70178 Stuttgart                   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 
-----Ursprüngliche Nachricht-----
Von: [] 
Gesendet: Mittwoch, 3. Dezember 2008 18:31
An: Ant Users List
Betreff: How can I figure out what JUnit test case is failing?


I'm using Ant 1.6.5 with Eclipse 3.4 (Win XP), JRE 1.5.  I run a particular JUnit task that
fails, but I can't figure out which test within my JUnit TestCase class is failing.  Here's
my task ...

  <target name="run-delete-add-test" depends="build-tests">
  	<junit dir="${build}" fork="true" haltonfailure="true" printsummary="on" showoutput="true">
    	  <path refid="project.class.path"/>
       	<pathelement path="${java.class.path}"/>
       	<pathelement path="${dist}/cedarpointpooledclient.jar"/>
       	<pathelement path="${build}"/>
  	  <test name="DeleteAddSubscriberTest" todir="${docs}" outfile="junit.delete.add.result">
  		  <formatter type="xml"/>

but all that is output to my Eclipse console is

    [junit] Running DeleteAddSubscriberTest
    [junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 2.156 sec

C:\Temp\CedarPoint_Service\build-junit-test.xml:105: Test DeleteAddSubscriberTest failed

How can I get more detailed information about what is going wrong?  There are 8 tests within
the DeleteAddSubscriberTest class.  
Thanks, - Dave

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

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

View raw message