TestRunner in 3.8 -- ARGH!!!

goran.krampe at bluefish.se goran.krampe at bluefish.se
Thu Nov 4 05:43:19 UTC 2004


Hi all!

Marcus Denker <denker at iam.unibe.ch> wrote:
> Am 03.11.2004 um 16:33 schrieb Bert Freudenberg:
> > Am 03.11.2004 um 03:33 schrieb Colin Putney:
> >>  the abstract classes will cause tests to get run twice -  or more 
> >> than twice if you have several levels of abstract classes in your 
> >> test hierarchy. This makes moderately-long-running test suites take 
> >> much longer.
> >
> > Wouldn't it be trivial to avoid these duplicate tests? Like if you 
> > only collect test methods from the class that actually implements 
> > them? Am I missing something obvious?
> 
> But there are testsuites that use Abstract Tests in the sense of 
> abstract classes: e.g. the ClassTestCase implements a bunch of tests
> that should be run on all tests that are subclasses of ClassTestCase.

Indeed.

> I really don't like the idea of grouping by inheritance... and having 
> something named Abstract that you can run is strange, somehow.
> 
>        Marcus

I am all with you Marcus, even though I am no super SUnit expert it
seems to me that suites should be used for grouping. As always, object
composition seems more appropriate than inheritance.

regards, Göran



More information about the Squeak-dev mailing list