<br><br><div class="gmail_quote">On Thu, Mar 26, 2009 at 7:16 AM, Keith Hodges <span dir="ltr">&lt;<a href="mailto:keith_hodges@yahoo.co.uk">keith_hodges@yahoo.co.uk</a>&gt;</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>
&gt; Mariano Martinez Peck wrote:<br>
&gt;&gt; On Thu, Mar 26, 2009 at 1:22 AM, Andreas Raab &lt;<a href="mailto:andreas.raab@gmx.de">andreas.raab@gmx.de</a><br>
&gt;&gt; &lt;mailto:<a href="mailto:andreas.raab@gmx.de">andreas.raab@gmx.de</a>&gt;&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;     SUnit will only use inherited test selectors if the superclass is<br>
&gt;&gt;     declared as abstract. I find this horribly annoying but that&#39;s the<br>
&gt;&gt;     way it is. You&#39;ll have to implement something like:<br>
&gt;&gt;<br>
&gt;&gt;     SuperTest class&gt;&gt;isAbstract<br>
&gt;&gt;            ^self == SuperTest &quot;NOT ^true since this makes subclasses<br>
&gt;&gt;     abstract too&quot;<br>
&gt;&gt;<br>
&gt;&gt;     See ToolBuilderTests and its subclasses for an example.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; It doesn&#39;t work :(  I tried it with my class and also with<br>
&gt;&gt; MVCToolBuilderTests. In both cases I get this wallback:<br>
&gt;&gt;<br>
&gt;&gt; any ideas?<br>
&gt;<br>
&gt; Well, that&#39;s because you have some non-standard patches to SUnit<br>
&gt; loaded. If you use a straight 3.10.2 image it doesn&#39;t even include<br>
&gt; methods like #allSelectorsBelow: or #withInheritedSelectors that show<br>
&gt; up in your call stack.<br>
&gt;<br>
&gt; I suggest you don&#39;t just load every random &quot;enhancement&quot; you find on<br>
&gt; the net in particular when it comes to something as fundamental as<br>
&gt; SUnit ;-)<br>
&gt;<br>
&gt; Cheers,<br>
&gt;   - Andreas<br>
</div></div>RTFM.... The class comment explains<br>
</blockquote><div><br>Ok. Thanks. I wasn&#39;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&#39;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>