Getting Started with Behavior Driven Development
What is SpecFlow and its benefits? These are the main questions this article answers.
What is SpecFlow and its benefits? These are the main questions this article answers.
SpecFlow is the #1 .NET open-source framework for Behavior Driven Development, Acceptance Test Driven Development and Specification by Example. With over 10 million downloads on NuGet, SpecFlow is trusted by teams around the world.
SpecFlow supports BDD by providing a mechanism to turn specifications into executable code. This code can then be used to create automated tests that run against the application to verify whether it actually exhibits the behavior described in your specifications.
To put it in BDD and SpecFlow terms, SpecFlow turns the Gherkin Given / When / Then syntax scenarios in feature files into executable code methods known as step definitions.
Transforming these steps, expressed in natural, readable language, into executable code, is where SpecFlow’s responsibility of ends. To further implement your test automation so that it actually communicates with your application under test, you will need to add other tools to your test automation solution.
Some tools that are often used in combination with SpecFlow to form a test automation framework are:
SpecFlow provides a whole ecosystem of tools to use BDD on Azure DevOps and the Microsoft .NET platform. Besides SpecFlow and SpecFlow+Runner, there is also a SpecFlow Visual Studio Extension that provides a Gherkin editor and build integration.
SpecMap and SpecFlow+LivingDoc are Azure DevOps extensions that support the team in the overall BDD process with managing their backlog using story maps and accessing their living documentation.
SpecFlow+ LivingDoc is also available as a set of plugins and tools for SpecFlow to generate local or self-hosted documentation out of your Gherkin feature files, which can be easily shared with your team and stakeholders without the need for Visual Studio or Azure DevOps.
💡 Demo: Try out our SpecFlow+ LivingDoc Generator Demo which is hosted on GitHub Pages.
To utilize SpecFlow with its powerful ecosystem, we recommend checking out the following extensions and getting started information.
SpecFlow is the #1 .NET open source framework for Behavior Driven Development, Acceptance Test Driven Development and Specification by Example. With over 10 million downloads on NuGet, SpecFlow is trusted by teams around the world.
In SpecFlow, specifications are written in plain, simple language which is defined by the Gherkin Syntax (Given-When-Then).
SpecFlow supports BDD by providing a mechanism to turn specifications into executable code. This code can then be used to create automated tests that run against the application to verify whether it actually exhibits the behavior described in your specifications.
To put it in BDD and SpecFlow terms, SpecFlow turns the Gherkin Given / When / Then syntax scenarios in feature files into executable code methods known as step definitions.
Transforming these steps, expressed in natural, readable language, into executable code, is where SpecFlow’s responsibility of ends. To further implement your test automation so that it actually communicates with your application under test, you will need to add other tools to your test automation solution.
Some tools that are often used in combination with SpecFlow to form a test automation framework are:
SpecFlow provides a whole ecosystem of tools to use BDD on Azure DevOps and the Microsoft .NET platform. Besides SpecFlow and SpecFlow+Runner, there is also a SpecFlow Visual Studio Extension that provides a Gherkin editor and build integration. SpecMap and SpecFlow+LivingDoc are Azure DevOps extensions that support the team in the overall BDD process with managing their backlog using story maps and accessing their living documentation.
To utilize SpecFlow with its powerful ecosystem, we recommend checking out the following extensions and getting started information.