• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Alternatives to JUnit

 
Ranch Hand
Posts: 152
  • 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
 
author
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.
 
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
 
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: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Guys
 
author & internet detective
Posts: 40035
809
Eclipse IDE VI Editor Java
  • 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>
 
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many links in this wiki website.
 
    Bookmark Topic Watch Topic
  • New Topic