[rspec-users] Time out long running tests using Rspec 2
ckponnappa at gmail.com
Tue Jun 21 08:13:09 EDT 2011
I'm cross posting a query on timing out tests that came up on our local ruby
In RSpec1, there was an option "timeout" using which we can fail all
> the long running tests i.e. "spec --timeout 2 spec/" will fail those
> tests which takes more than 2 seconds to run. It does not seem to be
> existing in RSpec2. I saw the "filter_run" option as mentioned here:
> Using this I can add "slow" tags to tests. But it is not same as the
> "timeout" option. Can someone let me know whats the better approach to
> time out slow running tests?
Any suggestions would be appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-users