relevance / tarantula

a big hairy fuzzy spider that crawls your site, wreaking havoc
http://github.com/relevance/tarantula
MIT License
444 stars 34 forks source link

Handle failing requests for Rails 3 #31

Closed codez closed 11 years ago

codez commented 11 years ago

When a request in a Rails 3 integration test produces an exception, this exception is directly passed to the test, causing it to fail. With Tarantula, exceptions in requests should produce regular responses with a status code of 500, so the crawling can go on. Finally, the test report will show the failed requests.

This branch rescues exceptions and wraps them into the response.

cldwalker commented 11 years ago

Thanks! Looks promising. I don't have time to process this now but I will next time I pick up this project. Do you have a screenshot of how error responses would look in the test report?

codez commented 11 years ago

The backtrace simply appears in the body area.

tarantula-error

(Actually, this error would now be rendered as a 404, not 500. It's an old screenshot ;)

cldwalker commented 11 years ago

Thanks!