tags:

views:

54

answers:

1

hi,

I have say 10 test cases, and i want to run them from a java class, i can get the Junit's class name only at runtime. Is it possible to do so.

Please help me.

+5  A: 
org.junit.runner.JUnitCore.run(Class<?>...)

It supports multiple test classes. From JUnit4.

卢声远 Shengyuan Lu