SpecFlow.VisualStudio
SpecFlow.VisualStudio copied to clipboard
Renaming a step file causes the feature file editor in VS to think there are duplicate steps
- Create a feature file with steps
- Create a steps file (we use [Binding] & [Scope(Feature = "MyFeatureFile")] attributes)
- Paste "pending" steps into steps file
- Rename steps file in VS (don't rename the class automatically)
- Rename the steps class to match the filename
The feature file thinks the steps are duplicated in the VS editor. All the steps go back to being purple
have you saved the class at any point in this process? If you save after 3 what happens?
I think the fix if you get into this state will be to delete the specflow-stepmap* files from %temp%
@xclayl I just ran into a very similar problem when renaming a file. The solution for me was to restart Visual Studio. Now the steps are showing mapped to the appropriate step definitions files.
Thanks dcboycm. That's what I've been doing too. Thanks for updating the issue.
Yes Restart your Visual Studio, Binding will work again.