File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to deal with JUnit assertTrue failure scenario using ant

 
sarada bokka
Ranch Hand
Posts: 80
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic