This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

DejaGNU-style JUnit testing


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/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]