Visual Studio Integration¶
The Visual Studio integration includes a number of features that make it easier to edit Gherkin files and navigate to and from bindings in Visual Studio. You can also generate skeleton code including step definition methods from feature files. The Visual Studio integration also allows you to execute tests from Visual Studio’s Test Explorer.
You can install the integration from Visual Studio Gallery or from the online search in Visual Studio under Tools/Extensions and Updates (search for “SpecFlow”). Detailed instructions can be found here.
The integration provides the following features:
Navigate from steps in scenarios to binding methods and vice versa
Detect bindings from the SpecFlow project, from project references and from assembly references
Cached step analysis for faster solution startup
Generic Test Runner Support
You can execute tests using the following test runners: Visual Studio, ReSharper and SpecRun. You can execute SpecFlow scenarios on all supported unit testing platforms (e.g. NUnit, xUnit, MSTest).
[Visual Studio Test Explorer Support)
Run/debug (including from feature files)
Scenario title displayed in Test Explorer
Full access to Test Explorer functions
Generate skeleton step definition methods from feature files
Re-generate feature files (from project node context menu and automatically on configuration change)
Support for ReSharper command shortcuts (when ReSharper is installed): commenting, navigation, test execution