|
From: Sean M. <sea...@pr...> - 2002-07-30 19:14:43
|
[Tony Redmond] > > For example, a unit test may consist of a DTD > > that validates the input to a unit test and a DTD that > > validates the output of a unit test. The unit test itself > > calls the XComponent to which the unit test is attached. I have a suggestion for how the unit test "calls" the XComponent. The unit testing framework creates an XPipe on the fly - of length 1 - the XComponent to be tested. It then invokes the XPipe engine feeding it the test inputs and checking the real test outputs against the desired outputs. In other words, the Unit testing framework sits on top of the XPipe engine. One engine two environments - unit test (developer), real user files (user). How does that sound? |