|
From: <dm...@cs...> - 2003-07-17 21:40:34
|
Hi:
Jonathan made the correct observation that the creation feature in subclasses of
TEST_SUITE are unnecessarily complex.
for example consider the following class ALL_TESTS which runs UNIT_TEST1 and
UNIT_TEST2
the make would look something as follows:
make is
local t1 : UNIT_TEST1; t2 : UNIT_TEST2
do
create t1.make
create t2.make
add_test(t1)
add_test(t2)
run
to_html("tests.html"
end
we can simplify this overhead, by requiring that the UNIT_TESTS are expanded
types; thus, the make will now look as follows:
make is
local
t1 : expanded UNIT_TEST1
t2 : expanded UNIT_TEST2
do
add_test(t1)
add_test(t2)
run
to_html("tests.html"
end
What do you all think?
Cheers,
DM
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
|