Published on March 14, 2014
SpecFlow creating executable specifications Rudy Lacovara firstname.lastname@example.org http://rlacovara.blogspot.com
What is SpecFlow? A tool that lets you write automated tests that look like this: Feature: Create a new company Scenario: Anonymous user submits a valid company Given user is not logged in And they create a company with valid data When they save the company Then the company is saved to the database And the saved company has status PendingReview Scenario: Admin user submits a valid company Given they create a company with valid data When they save the company Then the company is saved to the database And the saved company has status Published
Where did SpecFlow come from? Gherkin A really simple DSL used by both Cucumber and SpecFlow to define specifications Cucumber A Ruby testing tool used for creating and running specs. SpecFlow is based on Cucumber.
The basic parts • Features • Scenarios • Steps Features are made up of Scenarios Scenarios are made up of Steps
Feature: Company Save Scenario: Anonymous user saves a valid company Given user is not logged in And they create a company with valid data When they save the company Then the company is saved to the database And the saved company has a status PendingReview Scenario: Employer saves a valid company Given user is logged in AdminUser And they create a company with valid data When they save the company Then the company is saved to the database And the saved company has a status Published Feature Scenario Steps
Demo Because I hate Powerpoint and code is more interesting anyway
Installing Specflow There are 2 parts: 1. Install the SpecFlow Nuget package 2. Go to Visual Studio Extension Manager and install the SpecFlow Extension
Use SpecFlow to define, manage and execute automated acceptance tests from business-readable specifications. SpecFlow acceptance tests follow the BDD ...
Specflow - creating executable specifications; Specflow - creating executable specifications Aug 20, 2015 Technology squarehire. of 7
SpecFlow.exe picks up your ... SpecFlow.exe and MsTest ... The projectFile is the Visual Studio Project File containing features and specifications.
Behavior Driven Development (BDD) with SpecFlow and ASP.NET MVC. Test Driven Development (TDD) has been around for about a decade, and has been mainstream ...
Everything You Need to Get Started with SpecFlow and ... one of the nice features of creating executable specifications is that they should produce ...
Should I use specflow at unit test ... The thought of executable specifications at the unit ... the stakeholders of the project and creating a shared ...
Screencast: Using SpecFlow and WebAii. ... can then be translated into automated tests creating a set of executable specifications that a client can ...
These domain-specific languages now enable us to create executable specifications ... Gherkin and SpecFlow provide the ... to Channel 9 to ...
... Create and manage automated test with Visual Studio 2012. ... deep dive into using SpecFlow, ... SpecFlow for creating executable specifications. Vimeo.