Test Automation Everywhere

Download

Right click “Save as…”

The MVC pattern in ASP.NET applications is a popular agile development pattern, thanks to a clean separation of concerns between the models, views and controllers within an application. To test each of the components of an MVC app however, you need to perform different kinds of testing: unit testing on the model, integration testing on the controller and UI testing on the view. With Visual Studio 2010, you get a single integrated experience to create, run and maintain all of this testing using multiple test types like unit tests and the new coded UI tests run using mstest. In this walkthrough, we create tests targeting all components of a sample ASP.NET MVC app in one test project within VS that is checked in under the app source code solution and run the tests together to ensure test coverage at all levels in a single test run.

Follow the Discussion

Comments Closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.