Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SpecFlow / BDD Examples

Tags:

bdd

specflow

Just looking for some examples of BDD/SpecFlow - ideally a projectб so I can see how to use SpecFlow on big projects where multiple features my reference the same steps etc.

I've read a few blogs over the last few months, but haven't had a nice, juicy project of someone else's to mooch around through.

like image 216
nick Avatar asked Aug 09 '10 19:08

nick


People also ask

What is BDD using SpecFlow?

What is SpecFlow? SpecFlow is a BDD framework for . NET which boosts your productivity by helping you with writing your feature files and automation code in your favorite IDE using C# and . NET methods.

Does SpecFlow use Cucumber?

SpecFlow is a test automation solution for . NET which follows the BDD paradigm, and is part of the Cucumber family. SpecFlow tests are written with Gherkin, using the official Gherkin parser which allows you to write test cases using natural languages and supports over 70 languages.

What is BDD framework in C#?

Behavior Driven Development (or BDD) is an Agile software development technique that encourages collaboration between developers, QA, and non-technical or business participants in a software project.

What is SpecFlow software testing?

Specflow is a testing framework supporting BDD practices in . NET framework. It's an open source framework hosted on GitHub. It aids in using ATDD (Acceptance test driver development) for . NET Applications.


2 Answers

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.)

like image 92
Gaspar Nagy Avatar answered Sep 19 '22 20:09

Gaspar Nagy


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.

like image 26
ZombieDev Avatar answered Sep 21 '22 20:09

ZombieDev