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.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.