TestNG Changelog

What's new in TestNG 5.12.1

Jul 30, 2010
  • Added: ITestNGListenerFactory
  • Added: Passing command line properties via the ant task (Todd Wells)
  • Fixed: @Listeners now works on base classes as well
  • Fixed: Test priorities were not working properly in non-parallel mode
  • Fixed: @Listeners wasn't working properly with ITestListener

New in TestNG 5.11 (Dec 7, 2009)

  • Added: Dependent methods can now run in their own thread
  • Added: dataProviderThreadCount can be set from the command line and from ant (Adrian Grealish)
  • Added: ITestAnnotation#setDataProvider
  • Added: Assert#assertEquals() methods for Sets and Maps
  • Fixed: dataProviderClass was not respecting inheritance (like most attributes still)
  • Fixed: @BeforeSuite/@AfterSuite would run multiple times when used in a @Factory
  • Fixed: packages=".*" wasn't working properly (sandopolus)
  • Fixed: TestResult#getName now returns the description instead of the method
  • Fixed: @DataProvider and dependent methods were not skipping correctly (Francois Reynaud)
  • Fixed: TESTNG-347 suite with parallel="tests" and test with parallel="classes" doesn't work correctly (Rob Allen)
  • Fixed: TESTNG-67: @Configuration/@Factory methods in base class being ignored
  • Fixed: Inner test classes were not excluded properly (Carsten Gubernator)
  • Fixed: threadPoolSize without invocationCount was causing reporters not to be invoked
  • Fixed: A @Factory throwing an exception did not cause any error
  • Fixed: was not working properly in the ant task (Ed Randall)
  • Fixed: @BeforeClass methods were not running in parallel (Aidan Short)
  • Fixed: Test class with @ObjectFactory doesn't get instantiated via the factory
  • Fixed: Allow IObjectFactory to load from non-standard classloader (for PowerMock support)

New in TestNG 5.8 (Dec 22, 2008)

  • Fixed: TestNG-220: Ignore class definition/loader issues when scanning classpath for implicit classes
  • Fixed: TestNG-224: Fix for relative suite filenames in XML file
  • Added: TestNG-213: @Optional on a method parameter to allow optional @Parameters
  • Fixed: TestNG-214: SkipException and TimeBombSkipException should accept nested exceptions
  • Fixed: TestNG-211: new Parser(inputStream) doesn't work
  • Added: Methods that form a cycle are now shown when the cycle is detected
  • Added: Support for in testng.xml
  • Added: IMethodInterceptor
  • Added: @TestInstance on a data provider method parameter
  • Fixed: @AfterMethod(lastTimeOnly) didn't work properly with data providers
  • Added: antlib.xml to allow autodiscovery of Ant task definition
  • Fixed: name attribute on is required
  • Doc:
  • Added: Method Interceptor
  • Added: @Optional
  • Added: Doc for IMethodInterceptor (5.16) and TestNG listeners (5.18)
  • Added: 5.19: Dependency injection