September 01, 2004Announcing TestNG 1.0!I am happy to announce the availability of TestNG 1.0. A lot of changes have been made since the early releases thanks to the recent addition of Jolly Chen to the team. As a quick reminder, TestNG is a testing framework using annotations to provide a more powerful way to test your code in various ways: unit, regression, functional, integration, etc... TestNG allows you to clearly separate your Java code from the way your tests are run. You never need to recompile any of your classes if you decide to run a different set of tests or suites. TestNG also provides a very flexible configuration mechanism allowing you to specify arbitrary methods to be invoked at particular moments during your test run, such as "before every test method" or "after all the test methods have run". Here is a quick example of what TestNG code looks like:
import com.beust.testng.annotations.*;
public class SimpleTest {
@Configuration(beforeTestClass = true)
public void setUp() {
// code that will be invoked when this test is instantiated
}
@Test(groups = { "functest" })
public void itWorks() {
// This method will be invoked if the current run
// includes the group "functest"
}
}
Some of the major changes since the previous versions include:
Download TestNG and try it, you won't regret it! Comments
I am trying to use testng on eclipse, all seems to be fine, but the plugin doesn't recognize the annotations, i am using a package tag on the XML file to set all the clases on the "test.whatever" package to be reviewed for testng... I am interested in TestNG as AppFuse embark it. Thanks. Hello Cedric, HELLOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO Posted by: Andr at August 7, 2007 03:00 PMCan I find a testNG Eclipse plug-in? Posted by: David at September 21, 2007 11:26 AMDoes testNG supports java 1.6 Posted by: Prasoon Kumar at April 2, 2008 06:10 AMI have just downloaded the tool. Will let you know as I sail in the features provided. Looks great from the documentation provided. Just wrote my first test but waiting to get it executed! CHEERS!!! Posted by: Bhupinder Singh at June 2, 2008 10:29 PMPost a comment
|