This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
DejaGNU-style JUnit testing
- To: java-discuss at sources dot redhat dot com
- Subject: DejaGNU-style JUnit testing
- From: Per Bothner <per at bothner dot com>
- Date: 15 Jul 2001 00:12:18 -0700
I don't know if this makes sense or not, but I hacked together a
little extension of the JUnit testing framework (http://www.junit.org/).
This has these extra features:
* A hook for "expected failures". (I guess the proponents of
"Extreme Programming" don't believe in expected failues!)
* the output is written in DejaGNU-style syntax:
FAIL: test1(gnu.testing.mytest) - expected:<5> but was:<4>
XPASS: test4(gnu.testing.mytest)
Time: 0.02
=== Summary ===
# of expected passes 1
# of unexpected passes 1
# of unexpected failures 1
# of expected failures 1
* Terse output is written to standard output. Complete output
plus redirected System output and error are written to a log file.
(For now hard-wired to /tmp/test.log.)
I don't know if this is of interest to any one, but I've attached
a snapshot.
gnu.testing package
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/