Hi: On 23 Jan 2010, at 01:03, Adrian Kuhn wrote:
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: Thanks, have now my own subclass which does
runCase self should: [super runCase] notTakeMoreThan: self expectedMaxRuntime And it works fine :) Best Stefan
If you dont use akuhn/SUnit the first two methods are in TestCase and the third requires Phexample.
cheers, AA
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Stefan Marr Software Languages Lab Vrije Universiteit Brussel Pleinlaan 2 / B-1050 Brussels / Belgium http://soft.vub.ac.be/~smarr Phone: +32 2 629 3956 Fax: +32 2 629 3525