Hi Dude,
I had a problem with JUnit4.x
Is there a way to dynamically add tests to a test suite in JUnit 4.x and above verisons?
Maybe I am misunderstanding something, but it seems like the only way
to add tests is via the @Suite.SuiteClasses{} annotation.
In JUnit 3.x I could do something like this
public static Test suite() {
TestSuite suite = new TestSuite();
suite.addTest(new MyTestCase("methodName()"));
return suite;
}
thanks in advance,
Rajesh Gottapu.
Dude, In JUnit 4, you need
Dude,
In JUnit 4, you need to use a custom runner to do something similar.
David Saff