<br><br><div class="gmail_quote">On Thu, Mar 26, 2009 at 7:16 AM, Keith Hodges <span dir="ltr"><<a href="mailto:keith_hodges@yahoo.co.uk">keith_hodges@yahoo.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">Andreas Raab wrote:<br>
> Mariano Martinez Peck wrote:<br>
>> On Thu, Mar 26, 2009 at 1:22 AM, Andreas Raab <<a href="mailto:andreas.raab@gmx.de">andreas.raab@gmx.de</a><br>
>> <mailto:<a href="mailto:andreas.raab@gmx.de">andreas.raab@gmx.de</a>>> wrote:<br>
>><br>
>> SUnit will only use inherited test selectors if the superclass is<br>
>> declared as abstract. I find this horribly annoying but that's the<br>
>> way it is. You'll have to implement something like:<br>
>><br>
>> SuperTest class>>isAbstract<br>
>> ^self == SuperTest "NOT ^true since this makes subclasses<br>
>> abstract too"<br>
>><br>
>> See ToolBuilderTests and its subclasses for an example.<br>
>><br>
>><br>
>> It doesn't work :( I tried it with my class and also with<br>
>> MVCToolBuilderTests. In both cases I get this wallback:<br>
>><br>
>> any ideas?<br>
><br>
> Well, that's because you have some non-standard patches to SUnit<br>
> loaded. If you use a straight 3.10.2 image it doesn't even include<br>
> methods like #allSelectorsBelow: or #withInheritedSelectors that show<br>
> up in your call stack.<br>
><br>
> I suggest you don't just load every random "enhancement" you find on<br>
> the net in particular when it comes to something as fundamental as<br>
> SUnit ;-)<br>
><br>
> Cheers,<br>
> - Andreas<br>
</div></div>RTFM.... The class comment explains<br>
</blockquote><div><br>Ok. Thanks. I wasn't aware of that. I look at it, I add a class side method in my super test class like this:<br><br>shouldInheritSelectors<br> ^ true<br><br>but still doesn't work and I am having the same error. What I am doing wrong ? <br>
<br>thanks in advance<br><br>mariano<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
#shouldInheritSelectors has to be explicitly set, rather than guessed at.<br>
<font color="#888888"><br>
Keith<br>
<br>
<br>
<br>
<br>
<br>
</font></blockquote></div><br>