Sunday, February 15, 2009

In Junit you can group your tests together into a suite, so they can be run altogether. This is useful for running all your module tests in your IDE in the one go, to get a nice overview.

In Junit4 you create a test suite by creating and running a class like example below:



@RunWith(Suite.class)
@SuiteClasses({
ConfigModuleMgmtApiTest.class,
ConfigMgmtApiTest.class,
ConfigHelperTest.class,
DataTypeHelperTest.class
})
public class ConfigTestSuite {

}

No comments: