SpecFlow.VS
SpecFlow.VS copied to clipboard
Items missing from the SpecFlow Add Items context menu
Used Visual Studio
Visual Studio 2022
Are the latest Visual Studio updates installed?
Yes
SpecFlow Section in app.config or content of specflow.json
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="TechTalk.SpecFlow" publicKeyToken="0778194805d6db41" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.9.0.0" newVersion="3.9.0.0" />
</dependentAssembly>
</assemblyBinding>
Issue Description
When trying to add a new item - in this case a new step definition.
The context menu only contains the ability to add a Feature file, Specflow config file, SpecFlow hooks file. This is in contrast to the 2019 version which has the full selectioon of options including the different language options
Steps to Reproduce
Right click on project solution and add new item
Select Specflow from the menu
Note there are on the three options available in the menu
Link to Repository Project
No response
We only added the three item templates to the VS 2022 version. Which of the old item templates are you missing?
The steps file is not there I have a similar experience,
The steps file is not there I have a similar experience,
We only added the three item templates to the VS 2022 version. Which of the old item templates are you missing?
"Step Definitions" could be useful.
As adding Item Templates is a good issue to start contributing to, here is some information on how to do it.
- The Item Templates are located here: https://github.com/SpecFlowOSS/SpecFlow.VS/tree/main/SpecFlow.VisualStudio.ItemTemplates
- Every Item Template has its own folder.
- The old Item Templates are here: https://github.com/SpecFlowOSS/SpecFlow.VisualStudio/tree/master/ItemTemplates
- The .vstemplate files configure the template
- The .cs/.vb/.fs files are the content of the new file
So if anybody of you @tariful-islam98, @John01111, @pjholland would send me a PR to add the Item Templates, I am happy to review them.
@SabotageAndi I'll try and add them, but havent done something like that before.
Pull request created with the changes:
https://github.com/SpecFlowOSS/SpecFlow.VS/pull/84
The 2019 option has nine items in the list - the main item missing in 2022 is the SpecFlow Step Definition template On Wednesday, 13 April 2022, 11:04:05 BST, Andreas Willich @.***> wrote:
We only added the three item templates to the VS 2022 version. Which of the old item templates are you missing?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
The Dutch an German template are missing from the list.
Marco
Op di 11 okt. 2022 11:27 schreef Paul Holland @.***>:
The 2019 option has nine items in the list - the main item missing in 2022 is the SpecFlow Step Definition template On Wednesday, 13 April 2022, 11:04:05 BST, Andreas Willich @.***> wrote:
We only added the three item templates to the VS 2022 version. Which of the old item templates are you missing?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
— Reply to this email directly, view it on GitHub https://github.com/SpecFlowOSS/SpecFlow.VS/issues/73#issuecomment-1274396761, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFJM3ZHPXKUPUF7WLOTLT5LWCUXG5ANCNFSM5THGUO2Q . You are receiving this because you commented.Message ID: @.***>
We need the "new Steps" one.