This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Testing and the fly likes How to deal with JUnit assertTrue failure scenario using ant Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » Testing
Bookmark "How to deal with JUnit assertTrue failure scenario using ant" Watch "How to deal with JUnit assertTrue failure scenario using ant" New topic
Author

How to deal with JUnit assertTrue failure scenario using ant

sarada bokka
Ranch Hand

Joined: Jan 13, 2010
Posts: 80
Hi All,

I have Junit test suite which runs successfully using ANT and eclipse. The sample I tried is from (http://www.yolinux.com/TUTORIALS/Java-JUnit.html)

But if my assertion is failed ANT still shows as success(ex: assertEquals(20,21)) where eclipse JUnit works fine as throws error.

Why my ant is not showing test case as failed? below is my ant script



Thanks in advance.
Regards,
Sarada.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: How to deal with JUnit assertTrue failure scenario using ant
 
jQuery in Action, 3rd edition