Main Content

BDD in ASP.NET MVC using SpecFlow, WatiN and WatiN Test Helpers

A talk by Brandon Satrom at mvcConf 2

About the Talk

February 8, 2011 4:00 AM



In recent years, the friction of creating scenarios in BDD, and in using those scenarios to author tests, has been reduced greatly. Developers now have tools that enable specifications to be written using a structured, English syntax, and to use those specifications as the tests that prove out the code. These domain-specific languages now enable us to create executable specifications first in the process, followed by building out only that functionality which meets the specification, resulting in fewer, more value-focused tests. This presentation will introduce Gherkin, SpecFlow and WatiN, and provide examples of how these three tools can be used to create BDD-style in ASP.NET MVC applications. Gherkin and SpecFlow provide the framework for writing and executing specifications within Visual Studio, while WatiN allows us to write tests that drive a web browser automatically, giving us automated, end-to-end testing of the public features system.

Ratings and Recommendations

Avg. Rating

Average based
on 34 ratings

comments powered by Disqus