Can we unit test View ('V') of MVC?

asp.net-mvc, unit-testing

Solution

Haven't views abandoned code behind now? So what are you going to test? If you are testing the controller, then you just need a succesful view result to show that the view works. Rather than going to the trouble of pre compiling views or whatever, this will start to drag any sizeable project down in terms of continuous integration, and build.

Problem

Duplicate: Unit Testing the Views? Is there any way to unit test View? I am sure that we can test Model & Controller but don't know how to unit test View? Is that worth testing View?

Original source

Related problems