Jan. 23, 2010
12:03 a.m.
Lukas Renggli <renggli@...> writes: Please don't add this to TestCase. Sometimes I want to keep my
debuggers open. Also this slows running lots of tests considerably down.
I suggest that you create your own subclass of TestCase and override runCase as such:
runCase [ super runCase ] valueWithin: self expectedMaxRuntime onTimeout: [ self failWithTimeout ]
+1, being able to debug your tests is a must have. Please note that is also TAssertable >> #should:notTakeMoreThan: TAssertable >> #should:notTakeMoreThanMilliseconds: TestMatcher >> #runWithin: If you dont use akuhn/SUnit the first two methods are in TestCase and the third requires Phexample. cheers, AA