Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

best tool/framework for Unit test cases

 
bhagya patil
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I would like to know best tool/framework for java unit test
cases.
Junit is usually preferred but there are few contraints with it.
How about cactus ?
Pls let me know merits and demerits of Junit.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The merits of JUnit are that it has the dominant user base (almost everyone uses JUnit) and that the tool support is second to none.

And Cactus isn't a unit testing framework. It's an extension to JUnit.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some people prefer TestNG over JUnit, although I would always choose JUnit. It's a matter of taste, I guess. I'm not aware of other serious alternatives.
 
bhagya patil
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic