Question: Running JUnit
How can we run JUnit or Run test case Using JUnit using command prompt or CMD? Is there any alternate way of running test cases?
You can run JUnit test case by running following command on CMD :
java org.junit.runner.JUnitCore <Your Test Class Name>
If all the test is successful, it will display an "OK" message.
If the tests don't pass, verify that junit.jar is in the CLASSPATH.
One thing i forgot to tell you that you can run Test cases using IDs such as Eclipse etc.