Page 1 of 1

Unit testing controllers

Posted: Sun Mar 18, 2007 9:34 am
by alex.barylski
Specifically your page controllers, specialized for your application...

Do you do it or not? Why?

Posted: Sun Mar 18, 2007 5:32 pm
by Ambush Commander
For the things I've written so far (nothing really fully blown), no. I use smoke-testing i.e. manual human intervention to test them. It's tough mocking all the dependencies, sometimes the unit test will be longer than the actual code.

Posted: Sun Mar 18, 2007 6:07 pm
by alex.barylski
Thats what I thought as well...

Having a mock front controller coordinating all those controllers would be cumbersome...I'm curious to know if others do it and how :)

Thanks :)