Installation
Below are the installation steps for installing JUnit:
1. unzip the junit.zip file
2. add junit.jar to the CLASSPATH. For example: set classpath=%classpath%;INSTALL_DIR\junit3\junit.jar
3. test the installation by using either the batch or the graphical TestRunner tool to run the tests that come with this release. All the tests should pass OK.
Notice: that the tests are not contained in the junit.jar but in the installation directory directly. Therefore make sure that the installation directory is on the class path
o for the batch TestRunner type:
java junit.textui.TestRunner junit.samples.AllTests
o for the graphical TestRunner type:
java junit.awtui.TestRunner junit.samples.AllTests
o for the Swing based graphical TestRunner type:
java junit.swingui.TestRunner junit.samples.AllTests
Important: don't install the junit.jar into the extension directory of your JDK installation. If you do so the test class on the files system will not be found.
Partager