SpecFlow / BDD Examples

The official example set of SpecFlow can be found on github: http://github.com/techtalk/SpecFlow-Examples

The ASP.NET-MVC/BookShop sample is the one that you can have a look. It is not a very big project though. (If you a need VS2010 sample, switch to the VS2010 branch.)


Another great place to find examples are from the tests for the SpecFlow project itself.

In particular those used to test the Gherkin parsing: https://github.com/techtalk/SpecFlow/tree/master/Tests/TechTalk.SpecFlow.Specs/Features

Those tests show a lot of ways to write scenarios using syntax for mutliline parameters, table parameters, templates, and more.


Also, see Brandon Satrom's recent MSDN article on the topic: http://msdn.microsoft.com/en-us/magazine/gg490346.aspx


Also check out Steve Sanderson's GuestbookDemo, which shows off how to use SpecFlow with WatiN in ASP.NET MVC.

Tags:

Bdd

Specflow