background preloader

TestNG

Facebook Twitter

TestNG, nouveau framework de tests unitaires Java par Sébastien Palud. TestNG, un autre framework de tests unitaires Java. TestNG Official Site. TestNG Now available Click for more details. Cédric Beust (cedric at beust.com) Current version: 6.8.1 Created: April 27th, 2004 Last Modified: March 30th, 2013 TestNG is a testing framework inspired from JUnit and NUnit but introducing some new functionalities that make it more powerful and easier to use, such as: Annotations.

Run your tests in arbitrarily big thread pools with various policies available (all methods in their own thread, one thread per test class, etc...). TestNG is designed to cover all categories of tests: unit, functional, end-to-end, integration, etc... I started TestNG out of frustration for some JUnit deficiencies which I have documented on my weblog here and here Reading these entries might give you a better idea of the goal I am trying to achieve with TestNG. Here is a very simple test: SimpleTest.java The method setUp() will be invoked after the test class has been built and before any test method is run. Things to note: build.xml Use ant to invoke it: Requirements. Welcome. TestNG vs JUnit4 « Nelz's Blog.