The major new features in TestNG are:
- Configuration annotations are now called @BeforeTest, @BeforeSuite, which are terse and also support IDE auto-completion for users who might type @Before
- When executing multiple test suites, reports are now kept distinct in each suite's directory. Report UI's have also been improved.
- New SuiteName and testName attributes in the @Test annotation allows grouping tests to specific suites in the code instead of TestNG.XML. Useful for grouping reports for tests executed via ant or command line.
- @ExpectedAnnotations deprecated in favour of an expectedExceptions attribute in @Test.
- Improved StackTrace readibility by hiding unnecessary portions of the stack trace