Open aliensqueegee opened 5 years ago
Could you post also the generated bindings please?
@SabotageAndi I've updated issue description
Ah, you are using the method names to do the binding. Some stuff doesn't work with them. I would suggest to switch back to the definition via regular expressions.
@SabotageAndi it's working fine with regular expression definition style for this PoC project. Changing a whole project from one method name style to regular expresion might be a little to much for me right now. Any chance that this bug will be fixed for method name definition style in the near future?
If not somebody sends a PR with a fix, I don't think this will fixed soon. Currently we (as in SpecFlow Team) don't have any work planned around method name definition. It's a rarely used feature and we are only a small team with limited time and resources. Sorry.
SpecFlow Version:
Used Test Runner
Version number: 2.4.1
Project Format of the SpecFlow project
packages.config
<PackageReference>
tags.feature.cs files are generated using
SpecFlow.Tools.MsBuild.Generation
NuGet packageSpecFlowSingleFileGenerator
custom toolVisual Studio Version
Enable SpecFlowSingleFileGenerator Custom Tool
option in Visual Studio extension settingsAre the latest Visual Studio updates installed?
<Major>.<Minor>.<Patch>
.NET Framework:
Test Execution Method:
<SpecFlow> Section in app.config or content of specflow.json
Repro Project
Issue Description
I have two feature files in my test project.
The issue is that everything after 'test' string is ignored when generating step definitions. You get the message All steps are bound! when you try to generate step definitions. In the second feature file I notice that text that will be ignored is italic and gray. It's like it's considering text that will be ignored to be part of the parameter 'test'
Steps to Reproduce
Step 1:
@Calculator Scenario: Add two numbers Given I have entered 50 into the calculator And I have entered 70 into the calculator When I press add Then the result should be 120 on the screen and message 'test'
Step 2:
@CalculatorV2 Scenario: Add two numbers Given I have entered 50 into the calculator And I have entered 70 into the calculator When I press add Then the result should be 120 on the screen and message 'test' text that will be ignored