Google News
logo
JUnit - Interview Questions
How will you run JUnit from command window?
To run JUnit tests from a command window, you need to check the following list :
 
* Make sure that JDK is installed and the “java” command program is accessible through the PATH setting. Type “java -version” at the command prompt, you should see the JVM reports you back the version string.

* Make sure that the CLASSPATH is defined as shown in the previous question.

Invoke the JUnit runner by entering the following command :

java org.junit.runner.JUnitCore

Advertisement