March 19, 2011
7:19 p.m.
Thus, my basic test class implements some 9 tests, and my auto-sizing test-class adds two more test. However, when I run the tests, only 11 tests are executed and not 2*9 + 2 = 20 tests. Is there something I am missing? Is there a way that I can force SUnit to also execute the tests of the superclass?
See the method TestCase class>>#shouldInheritSelectors.
Or, something that would actually be nice, is there a way that I can automatically parameterize my tests with data?
In your test class create a test method that takes the parameter(s) as argument. Create several test methods that call this method with different arguments. Lukas -- Lukas Renggli www.lukas-renggli.ch