290961 (1) [Avatar] Offline
#1
Are you planning on discussing how to test routes? In a large application, routing can get complex and difficult to maintain. It would be good to see this covered.

Thanks
Andrew Lock (51) [Avatar] Offline
#2
Hi,

I'm not planning on discussing this directly in the book. However, I do discuss integration testing which you can use to run an instance of your application in a unit test and can make requests to it. It's not only testing routing then, but routing will be part of it!

Unit testing routes is harder due to the fact the routes can come from multiple places (e.g. attributes and conventions), so I'd suggest integration testing may be the way to go

Andrew