Topic: Integration Tests. How to continue after Exception error?

Hey.
Ive written some integration tests for huge site i've inherited.
The test runs fine, through a large list of urls on the site, and also for multiple types of users on the site.

Im testing only:

get "#{url}"
assert_equal "#{url}", path
assert_response :success

for each of these URLs in my list, checking which ones fail, generally with a 500 exception error.

my problem is, the test stops on the first exception error, which makes sense, but what i'm hoping for is a way for the test to continue so i can Log the URL + Error and then have a list of all buggy pages.

Does anyone know a way how i can stop the test from ending at an exception error?
thanks

Re: Integration Tests. How to continue after Exception error?

Obvious....

begin
      get "#{url}"
      assert_equal "#{url}", path
      #trace_response
      assert_response :success
    rescue
      StandardError
      puts ""
      puts "Rails Error on #{url}"
      puts ""
    end