Just downloaded the latest version of VSC and Specflow (2022). For my training course.
I've created as simple customer registration BDD script
I have the correct Nugget packages installed but I am unable to see the "Generate Step Definitions" when I right click.
I'm trying to create a step definition I keep getting the following error
This is how to resolve this issue
Right click at the project level - THIS IS MY PROJECT
Select Add new item 3 Add SpecFlow Configuration File
Delete what is that JSON file
Paste this code into the config file instead
{ "language": { "feature": "en-nz" } }
Go into feature file and Right click a step
Select Define Steps option
Go through the define steps wizard
The step definition file will be generated
Add to the step definitions folder
To double check select step, right click and select ' go to definition '
You should be taken to the step definition file step you've selected.
I had this same issue.
You have to build the solution (ctrl+shift+B) or the project (ctrl+B) first. Then try define steps again.
Hope this helps.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.