Reputation: 16646
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.
Upvotes: 2
Views: 308
Reputation: 32004
org.junit.runner.JUnitCore.run(Class<?>...)
It supports multiple test classes. From JUnit4.
Upvotes: 5