views:

301

answers:

1

Hi there,

I just started devoloping ASP.NET MVC Web applicatons. One thing I like about ASP.NET MVC is the built in test environment. It gives you the possibility to write unit tests and built test driven web applications (TDD). But I'm missing the possibility to do behaviour driven development (BDD).

BDD can be done nicely using Ruby On Rails and Cucumber.
But is there a way to do it the BDD way in ASP.NET MVC?

+4  A: 

Check out SpecFlow. It is a BDD framework for .Net and integrates with VisualStudio. You can combine it with Selenium or WatiN to do BDD with ASP.NET.

The SpecFlow team is currently working on an ASP.NET MVC example using SpecFlow and Selenium, watch the website.

An alternative is using Cuke4Nuke, the direct port of Cucumber for .Net. Here is an example using Cuke4Nuke with WatiN.

jbandi
Some more => BehaveN and NBehave (where last one requires custom test runner like Galileo).
Arnis L.