The JUnit package contains a simple, open source framework to write and run repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks. JUnit features include assertions for testing expected results, test fixtures for sharing common test data, and test runners for running tests.
Download (HTTP): http://downloads.sourceforge.net/junit/junit4.3.1.zip
Download MD5 sum: 6c22e6733f4ba9d755a437375e3d476e
Download size: 643 KB
Estimated disk space required: 5.7 MB
Estimated build time: less than 0.1 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/junit
Install JUnit by running the
following commands as the root
user:
install -v -m755 -d /usr/share/{,doc/}junit-4.3.1 && chown -R root:root . && cp -v -R junit* org /usr/share/junit-4.3.1 && cp -v -R *.html *doc /usr/share/doc/junit-4.3.1
Add the junit-4.3.1.jar
and
/usr/share/junit-4.3.1
directory to
your system CLASSPATH
environment
variable:
export CLASSPATH=$CLASSPATH:\ /usr/share/junit-4.3.1/junit-4.3.1.jar:/usr/share/junit-4.3.1
To run the JUnit regression
self-tests, you'll need to have JDK-6 Update 5 or Jikes installed and the
CLASSPATH
environment variable updated.
Then, as an unprivileged user, issue:
java org.junit.runner.JUnitCore org.junit.tests.AllTests
Last updated on 2007-07-16 08:54:37 -0500