• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TestNG

 
Paul Croarkin
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lasse,

Any thoughts on Cedric Beust's TestNG? I've been a JUnit guy for so long that I've never bothered switching to TestNG, but would be willing to if I could see substantial benefits in doing so.
[ September 28, 2007: Message edited by: Paul Croarkin ]
 
Eric Nielsen
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well I find it very similar to JUnit4. TestNG's test group notion is nice. Or put another way its ability to tag/group "bootstrap" tests that can terminate/ignore the rest of the run if needed. (For instance I've at times had to have somewhat complex custom assertions, which were test driven, within the same project. If any of these tests fail the rest of the run should be aborted since to results would be trustable.)

However I'm happier with JUnit since I really think that the "Test instance per method" approach JUnit takes, while possibly unintuitive, is just about required for really enforcing test isolation.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My perspective is similar to Eric's. I see some nice features in TestNG but prefer JUnit because of its opinionated nature of enforcing certain good practices.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic