Click here to Skip to main content
15,895,656 members
Articles / DevOps / Unit Testing

You Should Unit Test Your Controller, NOT!

Rate me:
Please Sign up or sign in to vote.
4.43/5 (12 votes)
28 Jul 2019CPOL3 min read 28.1K   13  
One of the MVC mantras is that it allows unit testing your controllers. But, that doesn't mean you should. In my opinion, you should focus your unit testing valuable effort in more effective areas as the controller, if done right, doesn't require unit testing.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
United Kingdom United Kingdom
Passionate about refining software practices, promoting self-motivated teams and orchestrating agile projects.
Lives in London, UK and works as a .NET architect consultant in the City.

Blog AdamTibi.net.

Comments and Discussions