ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Ivanov <rambiusparkisan...@yahoo.com>
Subject Re: Help with JUnit
Date Tue, 15 Jun 2004 13:38:28 GMT
Hello Gregory, you can do this:

<junit haltonerror="off" haltonfailure="off"
errorproperty="test.error"
failureproperty="test.error">
<!-- Do your tests here -->
</junit>

<junitreport>
<!-- Do your test reports here -->
</junitreport>

<fail message="Tests failed" if="test.error"/>
--- Gregory Gimler <shark@ll.mit.edu> wrote:
> I'm trying to do the following with the junit
> optional task.  I want to run 
> a test suite and indicate failure on a test. 
> However, I'd like to go 
> through the entire test suite and run every test
> even if one fails.  The 
> problem is I can either enable the halt options and
> stop after the first 
> failure/error and build unsuccessfully or I can set
> the halt options to 
> false and get the output of all failures/errors but
> it will return 
> successfully from the build (something I don't
> want).  Is there a way to do 
> this?  Thanks.
> 
> 
> 							-Greg
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Mime
View raw message