When I edit a specflow feature file test, it doesn\'t update the code-behind file. When I try to manually regenerate the code-behind files by right-clicking th
In Visual studio, I chose: Tools > Options > Specflow. Then set Enable SpecFlowSingleFileGenerator Custom Tool to True.
This is a legacy setting, however, and I want to try and find a way to use MSBuild.
These are the steps I had to take to switch from using the old, 'specflowsinglefilegenerator', to generate my *.feature.cs files to having them autoupdate whenever I build the test project.
The process is described on Specflow's website, but pictures help in understanding the process.
I had the same issue . And when I upgraded my specflow to 3.0.213 , feature.cs and tests were not generated. Then I used this MSBUild example with latest specflow to generate feature.cs and tests in test explorer. It uses MSTest as test runner.