On Dec 18, 2008, at 7:55 AM, Jorge Vargas wrote:

Hi, I'm writing unit tests and I was wondering if there is a way to
ask routes for all possible urls it can handle. if this is not, there
how hard will it be to implement? Ideally I want to mix this with
webtest so I can have a generic test that will tell me if all urls I'm
calling are ok, by ok I mean no 400 or 500 errors, I know this is
going to be harder for the POSTs but for all the GETs it should be a
nice addition to the testsuite.

Sort of. You can get all the routes out, and the paths that you setup, that's about it. You'd have to crawl all your controllers, and find all methods that could be gotten to publicly to find every execution path though.... not exactly ideal.

Cheers,
Ben

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to