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 ]
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.
Joined: Jan 23, 2002
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.