TestNG

From Wikipedia, the free encyclopedia
  (Redirected from Testng)
Jump to: navigation, search

Contents

[edit] Features

TestNG features include:

  • Flexible test configuration.
  • Support for data-driven testing (with @DataProvider).
  • Support for multiple instances of the same test class (with @Factory)
  • Support for parameters.
  • Allows distribution of tests on slave machines.
  • Powerful execution model (no more TestSuite).
  • Embeds BeanShell for further flexibility.
  • Default JDK functions for runtime and logging (no dependencies).
  • Dependent methods for application server testing.

[edit] Tool Support

TestNG is supported, out-of-the-box or via plug-ins, by each of the three major Java IDEs - Eclipse, IntelliJ IDEA, and NetBeans. It also comes with a custom task for Apache Ant and is supported by the Maven build system. The Hudson continuous integration server has built-in support for TestNG and is able to track and chart test results over time. Most Java code coverage tools, such as Cobertura, work seamlessly with TestNG.

[edit] Reporting

TestNG generates test reports in HTML and XML formats. The XML output can be transformed by the Ant JUnitReport task[1] to generate reports similar to those obtained when using JUnit. Since version 4.6, TestNG also provides a reporter API[2] that permits third-party report generators, such as ReportNG[3] and TestNG-XSLT,[4] to be used.

[edit] See also

[edit] External links

[edit] References


Personal tools
Namespaces

Variants
Actions
Navigation
Interaction
Toolbox
Print/export
Languages