SpecFlowOSS / SpecFlow.VisualStudio

Visual Studio extension of SpecFlow (extracted from the main SpecFlow repo)
Other
68 stars 73 forks source link

Steps are displayed as binded while there is no step definition exist when using Scenario Outline #145

Open okyrylenko opened 5 years ago

okyrylenko commented 5 years ago

SpecFlow Version:

Used Test Runner

Version number:

Visual Studio Version

Are the latest Visual Studio updates installed?

.NET Framework:

Test Execution Method:

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

<specFlow>
        <runtime stopAtFirstError="false" />
        <stepAssemblies>
            <!-- This attribute is required in order to use StepArgument Transformation as described here; 
                https://github.com/marcusoftnet/SpecFlow.Assist.Dynamic/wiki/Step-argument-transformations
            -->
            <!-- This attribute is required in order to use StepArgument Transformation as described here; 
    https://github.com/marcusoftnet/SpecFlow.Assist.Dynamic/wiki/Step-argument-transformations  -->
            <stepAssembly assembly="SomaAssembly.Core" />
            <stepAssembly assembly="SomeAssembly.Pages" />

        <stepAssembly assembly="SpecFlow.Assist.Dynamic" /></stepAssemblies>       

    <!-- For additional details on SpecFlow configuration options see http://go.specflow.org/doc-config --><!-- For additional details on SpecFlow configuration options see http://go.specflow.org/doc-config --><!-- For additional details on SpecFlow configuration options see http://go.specflow.org/doc-config --><!-- For additional details on SpecFlow configuration options see http://go.specflow.org/doc-config --><!-- use unit test provider SpecRun+NUnit or SpecRun+MsTest for being able to execute the tests with SpecRun and another provider --><unitTestProvider name="SpecRun" /><plugins>
      <add name="SpecRun" />
    </plugins></specFlow>

Repro Project

Issue Description

When I use scenario outline, the steps are displayed as binded when there is no step definition exist, the test is skipped when trying to execute because no step definition found warning. Also getting no step definition found message when attempting to navigate to the step from a feature file pressing F12

Steps to Reproduce

image

SabotageAndi commented 5 years ago

probably duplicate of https://github.com/techtalk/SpecFlow/issues/1486

okyrylenko commented 5 years ago

@SabotageAndi you are referring to this defect in your previous comment. This is defect 1486

okyrylenko commented 5 years ago

there is a workaround for this defect. The user still can generate step definitions and steps in feature file link to them. It is not a show stopper but may be confusing when user experience this issue the first time.

SabotageAndi commented 5 years ago

sorry, I used the wrong number. It's https://github.com/techtalk/SpecFlow/issues/498