How to run multiple test classes with junit from command line?
问题 I know that to run junit from command line you can do this: java org.junit.runner.JUnitCore TestClass1 [...other test classes...] However, I want to run many tests together and manually typing "TestClass1 TestClass2 TestClass3..." is just inefficient. Current I organize all test classes in a directory (which has sub-directories indicating the packages). Is there any way that I can run junit from command line and let it execute these test classes all at once? Thanks. 回答1: Basically there are