Is it possible to do TDD on asp.net MVC 3? And if so, what are some good online resources? As far as I know, MVC 3 is the latest version that is out. But most of the tdd articles I google are for MVC 1. Even the only two books I've been able to find on TDDing in MVC are both for 1.0
Asp.net MVC Test Driven Development
Test Drive asp.net MVC
Even on the official Microsoft website the article that's an MVC TDD walkthrough is for MVC 2.0.
It's starting to make me think TDD is just not practical on asp.net MVC or that it's not heavily supported.
The tools (or frameworks) used in TDD involve JUnit, TestNG, NUnit, etc. These are used to run test cases. Gherkin is used for writing scenarios in BDD. Cucumber, SpecFlow, etc., are some of the widely used test automation frameworks.
This is the best resource I know for learning TDD:
Roy Osherove - The Art of Unit Testing
After reading this and reading the following MVC3 book:
Sanderson and Freeman - Pro ASP.NET MVC3 Framework
With this you will know enough to get started with Test Driven Development in MVC3.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With