How do I install JUnit?
1. First, download the latest version of JUnit, referred to below as junit.zip. 2. Then install JUnit on your platform of choice: Windows To install JUnit on Windows, follow these steps: 1. Unzip the junit.zip distribution file to a directory referred to as %JUNIT_HOME%. 2. Add JUnit to the classpath: set CLASSPATH=%CLASSPATH%;%JUNIT_HOME%\junit.jar Unix (bash) To install JUnit on Unix, follow these steps: 1. Unzip the junit.zip distribution file to a directory referred to as $JUNIT_HOME. 2. Add JUnit to the classpath: export CLASSPATH=$CLASSPATH:$JUNIT_HOME/junit.jar 3. (Optional) Unzip the $JUNIT_HOME/src.jar file. 4. Test the installation by using either the textual or graphical test runner to run the sample tests distributed with JUnit. Note: The sample tests are not contained in the junit.jar, but in the installation directory directly. Therefore, make sure that the JUnit installation directory is in the CLASSPATH. For the textual TestRunner, type: java junit.textui.TestRunner jun
1. First, download the latest version of JUnit, referred to below as junit.zip. 2. Then install JUnit on your platform of choice: Windows To install JUnit on Windows, follow these steps: 1. Unzip the junit.zip distribution file to a directory referred to as %JUNIT_HOME%. 2. Add JUnit to the classpath: set CLASSPATH=%CLASSPATH%;%JUNIT_HOME%\junit.jar Unix (bash) To install JUnit on Unix, follow these steps: 1. Unzip the junit.zip distribution file to a directory referred to as $JUNIT_HOME. 2. Add JUnit to the classpath: export CLASSPATH=$CLASSPATH:$JUNIT_HOME/junit.jar 3. (Optional) Unzip the $JUNIT_HOME/src.jar file. 4. Test the installation by using either the textual or graphical test runner to run the sample tests distributed with JUnit. Note: The sample tests are not contained in the junit.jar, but in the installation directory directly. Therefore, make sure that the JUnit installation directory is in the CLASSPATH. For the textual TestRunner, type: java junit.textui.