iphone
c
ajax
database
android
ruby-on-rails
regex
objective-c
visual-studio
silverlight
flash
html5
perl
algorithm
oracle
delphi
mvc
asp
jsp
dom
In JUnit 3.x you can define your own test suite. If you add
public static Test suite()
method to yout JUnit class than JUnit will run all methods that are defined in the returned variable. You can look on JUnit and junit.framework.TestSuite - No runnable methods (to the question) or http://junit.org/apidocs/junit/framework/TestSuite.html
You can do also something like this:
public static Test suite() { TestSuite suite = new TestSuite(YouTestClass.class); suite.addTest(new TestSuite(YouTestClass.class)); //you want to run all twice // suite.addTest(new YouTestClass("foo", 0); // for (int i = 0; i < TEST_SETALL.length; i++) { // suite.addTest(new YouTestClass("setAllTest",i )); // } Test setup = new TestSetup(suite) { protected void setUp() throws Exception { // do your one time set-up here! } protected void tearDown() throws Exception { // do your one time tear down here! } }; return setup; }