Unit testing controllers

Discussion of testing theory and practice, including methodologies (such as TDD, BDD, DDD, Agile, XP) and software - anything to do with testing goes here. (Formerly "The Testing Side of Development")

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Unit testing controllers

Post by alex.barylski »

Specifically your page controllers, specialized for your application...

Do you do it or not? Why?
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post 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.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post 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 :)
Post Reply