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:
- A unit testing framework such as NUnit, MSTest or xUnit.NET. This unit testing framework typically performs three tasks:
– Act as a test runner that executes the scenarios one by one, or in parallel.
– Provide an assertion library that can be used to compare expected outcomes that are codified by the creator of the test automation with actual outcomes observed in the application under test.
– Provide basic test results in reports, mostly in a form that can be picked up by a test orchestration or Continuous Integration tool like Azure DevOps, Jenkins, TeamCity or similar.
- A library that interacts with browsers and browser applications. The most common example of these tools is the Selenium WebDriver library.
- A library that interacts with APIs or web services, for example RestSharp.
- A library that generates human-readable reports, often in HTML format. Two popular examples of this category of tools are Allure and ExtentReports.
Get started with BDD & the SpecFlow ecosystem
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.