[Pharo-project] TestRunner and OB, esier to run tests when subclassing?
bouraqadi at gmail.com
Fri Nov 26 14:31:15 CET 2010
On 26 nov. 2010, at 10:47, Mariano Martinez Peck wrote:
> Hi. Forget for a moment why I have subclasses in my tests. But I have them. Some people do not agree with this, but this is not what I want to discuss. Suppose I have an abstract test sub several subclasses.
> In my case, all the tests (most of them) are in the superclass. But all tests use a method that I override in each concrete subclass.
I do use subclassing in my tests too. It is useful to factor-out tests.
> 2) When I open a test runner, I don't want that my abstract class appears there, since you cannot run the tests. Is there a way to prevent this?
Don't think so. At least not in 1.1.
But, you mark the class abstract and the TestRunner will ignore it.
More information about the Pharo-project