Lukas Renggli <reng...@...> 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


_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to