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?
ou 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.