Yaroslav Yakovlev
Yaroslav Yakovlev

Reputation: 6483

View for testing asp.net mvc

One of the benefits of asp.net mvc is testing. Also multiple templates are available for views. I wonder, why not create some view engine for testing. It will allow to write tests declaratively (like vriting your markup, but adding assumptions and constraints). What do you think, is there any sense for that?

Made some investigations and see that currently poeple are using fake view engines to test their controllers. Here and here are 2 examples of this approach. So in this context I`d say that idea of using views for testing purposes can be said like "Creating a view engine that will ease some default testing procedures".

By easing some testing procedures I assume the following:

Upvotes: 0

Views: 131

Answers (1)

Jonathan Moffatt
Jonathan Moffatt

Reputation: 13457

You might want to have a look at Fitnesse - see http://fitnesse.org. It is an acceptance testing framework that lets you put together acceptance tests in wiki form. This allows tests to be written, understood and executed by business users as well as by developers.

Upvotes: 1

Related Questions