Andreas Raab wrote:
Mariano Martinez Peck wrote:
On Thu, Mar 26, 2009 at 1:22 AM, Andreas Raab <andreas.raab@gmx.de mailto:andreas.raab@gmx.de> wrote:
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.
It doesn't work :( I tried it with my class and also with MVCToolBuilderTests. In both cases I get this wallback:
any ideas?
Well, that's because you have some non-standard patches to SUnit loaded. If you use a straight 3.10.2 image it doesn't even include methods like #allSelectorsBelow: or #withInheritedSelectors that show up in your call stack.
I suggest you don't just load every random "enhancement" you find on the net in particular when it comes to something as fundamental as SUnit ;-)
Cheers,
- Andreas
I wrote SUnit-improved because if we dont move it forward we have
a) no way to categorise tests to indicate what should work where. b) we have no way to time or know if tests use the network c) we have no way to integrate other testing frameworks ie. SSpec into the existing GUI etc etc. d) you cant define an exception handler around your tests to collect notifications.
etc etc.
All that has changed in this instance is that #shouldInheritSelectors must be defined explicitly for your class, which is better I think, it doesn't depend upon who my superclass happens to be. I can remember having issues with this going back 10 years.
As far as I know this is the only change to the existing api.
Keith