From: Peter McNab <mcnab_p@me...> - 2008-03-27 10:53:05
Below are some recent feature additions to dunit-2. (as I continue to
stress, for want of a better name)
SUMMARY LEVEL TESTING -or- EarlyExitCheck()
One of the design aims for dunit-2 was to provide summary level testing.
It probably doesn't have wide application, however some of you may have
extensive test suites with some tests that could benefit from it's use.
It's a useful speedup approach in testcases where there are a number of
preliminary checks that validate the setup conditions (or in my case
validate that I understand the required setup), followed by one or more
checks which are the final arbiter of pass or fail for the test as a whole.
Summary level testing provides a means to run the all important tests
run first and exit early on pass. If the new EarlyExitCheck fails,
testing continues so the validation checks run to help locate a failure
point. After an early exit check failure if all the following validation
checks pass the test method still fails and shows the original failure
type and message. If a validation check fails, the error messages are
As a QA and integrity measure the early exit functionality can be
globally turned off, so all checks run as before.
Vital validation checks should continue to preceed summary level checks.
Originally Warnings were intended mearly to provide test writers with a
reminder that the test fixture and or tested code might need closer
Warnings absorbed the count of "overrides" mainly to reduce GUI clutter,
where the PostTestFailures were intentionally (and allowably) surpressed.
However in response to one heavy user's needs Warnings now also generate
messages back to the listeners and convey the know cause. Warnings can
be turned off in the GUI.
Support for Kylix has not been continued. The new summary level checking
will hoewever be extended to the .Net GUI.
This post is also a call to see who is still out there and if there are
any list readers interested in putting the code through it's paces.
Email me on or off list if inclined.