in brief: spider integration test updated
Courtenay : August 13th, 2007
I’m shuffling round the code a little to make it easier for others to extend.
You can now mutate existing form values, which will effectively fuzz your application and see where your error handling is broken. I haven’t worked out a way to easily toggle this, so it’s disabled by default. Read the source. Most people won’t want to fuzz until a later stage in testing. I’ve added a form value to every mutated form so you can tell if it was just given data (if the value was empty) or if it was mutated (existing value)
Forms now show a better error message, and also show the query. I’m working towards making it generate code you can just copy-paste into another integration test (lazy…)
You can ignore URLs and forms by regex also.
get ‘/’
spider(@response.body, ‘/’,
:ignore_urls => [‘/login’, %r{^.+logout}, %r{^.+delete.?}],
:ignore_forms => [])
Thanks again to everyone who sent in patches.
1 Response to “in brief: spider integration test updated”
Sorry, comments are closed for this article.
August 17th, 2007 at 07:15 PM
I am new to RoR.
Why i have to have the first line “‘/’” ?!? sounds fuzzy for me.
Sam