Meaningless Drivel is fun!*
The moose likes Testing and the fly likes Alternatives to JUnit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Alternatives to JUnit" Watch "Alternatives to JUnit" New topic
Author

Alternatives to JUnit

Frank Daly
Ranch Hand

Joined: Mar 31, 2000
Posts: 139
Hi

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

Frank
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
I know of JUnitX and JTest (commercial) but haven't tried them.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
Reference Website

http://www.java-source.net/open-source/testing-tools


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
Tony Williams
Greenhorn

Joined: Oct 26, 2003
Posts: 7
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

Joined: Mar 31, 2000
Posts: 139
Thanks Guys
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30130
    
150

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>


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Surasak Leenapongpanit
Ranch Hand

Joined: May 10, 2002
Posts: 341
Many links in this wiki website.
 
jQuery in Action, 2nd edition
 
subject: Alternatives to JUnit
 
Similar Threads
Do you know other testing tool like JUnit ??
Good JUnit Tutorial?
Junit advantages
Model followed by ejb
junit