views:

87

answers:

4

What are the technologies out there? (I only know of JUnit) What is the most popular? Can you please explain the pros/cons of each?

Thanks Alot!!

+3  A: 

JUnit and TestNG are the most popular. JUnit being the de-facto standard, and TestNG providing some extra features.

Bozho
Hence the NG - "Next Generation".
duffymo
+2  A: 

You can find good comparison between JUnit and TestNG here:

http://hi.baidu.com/auraro816/blog/item/efe0574d03db6df4d72afc9f.html

if you have time to listen podcast try with Basement coders -Episode 21 – Interview with Cedric Beust creator of testNG

trix
+5  A: 

JUnit and TestNG are the main unit test frameworks.

Comparison can be found here - http://www.ibm.com/developerworks/java/library/j-cq08296/

I've used JUnit in most places I've worked, it seems to be the standard, but there are some nice things in TestNG.

I've used the following in combination with JUnit to facilitate testing:

Jon
+3  A: 

There are a lot of "add-on" framework for specific kinds of testing, typically these depend on JUnit. Examples:

  • DBUnit - for testing code that accesses a database
  • JFCUnit - for testing Swing apps
  • HTMLUnit - for testing web apps
Michael Borgwardt