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

Alternatives to JUnit

 
Frank Daly
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

What alternatives are there to JUnit and what are their pros and cons?

Frank
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know of JUnitX and JTest (commercial) but haven't tried them.
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Reference Website

http://www.java-source.net/open-source/testing-tools
 
Tony Williams
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In "Thinking in Java", 3rd Edition, Bruce Eckel used his own unit testing framework. You can look at that to aee if it works for you but I personally would rather use the full functionality of JUnit.
http://www.bruceeckel.com

Also, make sure that you look at Ant to automate your builds and tests. Maybe it would help to read "Pragmatic Unit Testing" and "Pragmatic Project Automation"
http://www.pragmaticprogrammer.com/bookshelf/index.html
 
Frank Daly
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Guys
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34178
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Despite the marketing from Parasoft, JTest is not an alternate to Junit. It does static analysis (code analysis) and dynamic analysis (black box and regression testing.) JTest can send unexpected inputs to your code and try to make it throw an exception. In the latest version of JTest, these tests are written using junit, so you can run the tests independently. JTest can also run your programmer written unit tests and include them in the test coverage results.

The tests JTest generates cannot replaces hand crafted tests. They do not test logic or intent or that your code is working properly. JTest is a great tool, but it does not replace junit. <end rant>
 
Surasak Leenapongpanit
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many links in this wiki website.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic