With TestNG, Why Do We Need JUnit 4.0?

By Angsuman Chakraborty, Gaea News Network
Friday, February 17, 2006

JUnit 4.0 finally adopted annotation based test identification, which TestNG has been doing for long, really long time.

TestNG support lower versions of JDK, whereas JUnit supports only JDK 1.5.

Can anyone tell me why would anyone in his right mind want to use JUnit 4.0 over TestNG?

Filed under: Java Software, Technology
Discussion

sj2004
March 14, 2010: 10:28 pm

another question. with junit 4.5 does any one need testNG?

That’s another stupid question.


Seb
March 20, 2006: 6:59 am

Après une étude sympa des deux technos,
il s’avère que TestNG garde toujours un avantage sur JUnit4.0 qui au final innove peu.

TestNG offre les techniques de passage de paramètres et de @Factory et les groupes de test qui restent non présentes chez JUnit.

J’avais peur de JUnit4 mais au final TestNG a de beaux jours devant lui, si il continue d’innover.
Voila ma pensée :)

February 22, 2006: 12:52 pm

TestNG is compatible with JUnit 3.x tests. It can understand and run them fine.


David Saff
February 22, 2006: 12:34 pm

Forward and backwards compatibility with JUnit 3.x, for one thing.

YOUR VIEW POINT
NAME : (REQUIRED)
MAIL : (REQUIRED)
will not be displayed
WEBSITE : (OPTIONAL)
YOUR
COMMENT :