ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Lalevée <nicolas.lale...@hibnet.org>
Subject [antunit] A fail task
Date Sat, 17 Oct 2009 13:30:38 GMT
I have some use case where I need to fail no matter what. Basically I  
need a task corresponding to the junit.framework.Assert#fail().

To implement it I suggest we implement it like the fail Ant task.  
Actually I suggest to rename "assertTrue" to "fail" in the  
antlib.xml(or "failure", "testFail" to not conflict with Ant's fail  
task ?), change the AssertTask so it will throw the  
AssertionFailedException if no condition is provided, and add a macro  
for assertTrue.

WDYT ?

Nicolas


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


Mime
View raw message