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.
This package is known to build and work properly using an LFS-SVN-20101029 platform.
Download (HTTP): http://downloads.sourceforge.net/junit/junit4.8.1.zip
Download MD5 sum: 86aae1041d5f36ab9b2fd7f53fb531c6
Download size: 1.6 MB
Estimated disk space required: 15 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.8.1 && chown -R root:root . && cp -v -R junit* org /usr/share/junit-4.8.1 && cp -v -R *.html *doc /usr/share/doc/junit-4.8.1
Add the junit-4.8.1.jar
and
/usr/share/junit-4.8.1
directory to
your system CLASSPATH
environment
variable:
export CLASSPATH=$CLASSPATH:\ /usr/share/junit-4.8.1/junit-4.8.1.jar:/usr/share/junit-4.8.1
To run the JUnit regression
self-tests, you'll need to have IcedTea6-1.9.7,
JDK-6
Update 18, 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 2010-11-12 14:14:59 +0000