Visual Studio 2017 With SpecFlow

Viewed 5616

I am running VS 2015 and VS 2017 side-by-side. I have installed TechTalk's SpecFlow from Nuget plus Nunit, the same on both VS versions. When I try to Add New Item a new feature file I can do this on VS 2015 but on VS 2017 I can't see the SpecFlow feature template, or, indeed, any SpecFlow template. The reference to specflow is definitely in the references; there's a configsetting in the app.config for Specflow.

How do I start with SpecFlow in VS 2017 [v15.2 (26430.16) Release; .NET 4.6.01055; SpecFlow v2.2.0] ? Is SpecFlow even usable on VS 2017?

3 Answers

to use specflow in VS:

  • you need to install specflow extension (for your VS version)
  • then install specflow nuget package it's better to restart VS in between.
  • for version < 3, then make sure you have "Enable SpecflowSingleFile Generator" set to false in (tools>options>specflow)
  • for version 3 onward, set to true
Related