SpecFlowOSS / SpecFlow.VS

The next version of the Visual Studio extension for SpecFlow
MIT License
39 stars 12 forks source link

VS 2022 Specflow Extension Not Working Regarding .feature file #74

Open kschend opened 2 years ago

kschend commented 2 years ago

Used Visual Studio

Visual Studio 2022

Are the latest Visual Studio updates installed?

Yes

SpecFlow Section in app.config or content of specflow.json

{ "stepAssemblies": [ { "assembly": "{{assemblyname}}" }, { "assembly": "{{assemblyname}}" }, { "assembly": {{assemblyname}}" } ] }

Issue Description

When I create a new .feature file or a step within an existing .feature file. I am unable to use the Specflow Extension to create/copy the method. The text appears white/rather than purple. If I right click and select "Define Steps", I am informed all steps have been defined. They have not. I found that if I would right click on the feature step and select "Go To Definition", nothing happens.

Steps to Reproduce

Define Steps issue: Write Given statement in .feature file Right click in file and select Define Steps

Go to definition issue: Right click on Given statement in .feature file (step must exist in Step Definitions), then select Go to definition

Link to Repository Project

No response

SabotageAndi commented 2 years ago

Do you have a step definition in the step assemblies that would catch the new step?

kschend commented 2 years ago

I have a StepDefinitions folder setup to catch any newly created .cs files. I do not have an existing StepDefinitions.cs class to catch new steps for a feature.

On Wed, Apr 27, 2022 at 2:45 AM Andreas Willich @.***> wrote:

Do you have a step definition in the step assemblies that would catch the new step?

— Reply to this email directly, view it on GitHub https://github.com/SpecFlowOSS/SpecFlow.VS/issues/74#issuecomment-1110660844, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFIO4A7J2JHZQM4ALN37YW3VHDV7ZANCNFSM5UMJ6TTA . You are receiving this because you authored the thread.Message ID: @.***>

-- Kathy

Msplint commented 2 years ago

Try building the solution first, then the text will become purple and you can generate the Steps.