I have a set of cucumber tests that run on the build server.
I often need faster feedback than the server itself, and therefore I look at the console output when it starts. I wanted to find a way to identify any failed test with one search term, so I changed our Around to print โFailed Testโ anyway, but Ruby does not seem to pass the exception back. I checked this by putting instructions after the start ... end.
Does anyone know why this is happening, or a way to wrap up any exception caused by a failed test at startup?
Around() do |scenario, block| begin Timeout.timeout(0.1) do block.call end rescue Timeout::Error => e puts "Failed Test" puts caller rescue Exception => e puts "Failed Test" raise e end end
source share