Skip to content
xtester edited this page Feb 2, 2014 · 8 revisions

Welcome to the testng wiki!

TestNG is a unit testing framework for the Java programming language inspired from JUnit and NUnit. The design goal of TestNG is to facilitate all kinds of tests: unit, functional, end-to-end, integration, etc., with more powerful, flexible and easier-to-use functionalities. TestNG's main features include:

  • Annotation support.
  • Support for parameterized and data-driven testing (with @DataProvider and/or XML configuration).
  • Support for multiple instances of the same test class (with @Factory)
  • Flexible execution model. TestNG can be run either by Ant via build.xml (with or without a test suite defined), or by an IDE plugin with visual results. There isn't a TestSuite class, while test suites, groups and tests selected to run are defined and configured by XML files.
  • Concurrent testing: run tests in arbitrarily big thread pools with various policies available and test whether the code is multithread safe.
  • Embeds BeanShell for further flexibility.
  • Default JDK functions for runtime and logging (no dependencies).
  • Dependent methods for application server testing.
  • Distributed testing: allows distribution of tests on slave machines.

Documentation

Discussions

Can anyone provide links to a road map for TestNG, and some release notes or feature introduction to the 6.8.x? Thanks.

More...