[squeak-dev] Re: Problem with supperclasses in Sunit
Andreas Raab
andreas.raab at gmx.de
Thu Mar 26 04:22:30 UTC 2009
SUnit will only use inherited test selectors if the superclass is
declared as abstract. I find this horribly annoying but that's the way
it is. You'll have to implement something like:
SuperTest class>>isAbstract
^self == SuperTest "NOT ^true since this makes subclasses abstract too"
See ToolBuilderTests and its subclasses for an example.
Cheers,
- Andreas
Mariano Martinez Peck wrote:
> Hi everybody:
>
> I am having a problem with Sunit on Squeak. I have a class called A and
> has a testXXX method (method that should be executed by sunit). I have
> class B that inherits from A and has no test method (method that should
> be run by sunit). When I want to run the tests of B (from Test Runner) I
> notice that testXXX is not run. I mean, zero runs for class B. I think
> this is incorrect. Am I ok ? Should testXXX be executed in this case ?
>
> Thanks for the help.
>
> Mariano
>
>
> ------------------------------------------------------------------------
>
>
More information about the Squeak-dev
mailing list
|