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:

  • Editor

  • Navigation

  • 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

  • Other

    • Generate skeleton step definition methods from feature files

    • Re-generate feature files (from project node context menu and automatically on configuration change)

    • Configurable options

    • Support for ReSharper command shortcuts (when ReSharper is installed): commenting, navigation, test execution


If you are having trouble with the Visual Studio integration, refer to the Troubleshooting page first.