Around('~@slow') do |scenario, block| timeout_seconds = 300 begin Timeout.timeout(timeout_seconds) do block.call end rescue Timeout::Error puts "Your test was killed after #{timeout_seconds}" end end Around('@slow') do |scenario, block| timeout_seconds = 1200 begin Timeout.timeout(timeout_seconds) do block.call end rescue Timeout::Error puts "Your slow test was killed after #{timeout_seconds}" end end