Closed serge-rsvz-inasti closed 5 months ago
I see what I did wrong, I had replaced < and > by ".." at some point, breaking the test definition.
False positive
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
SpecFlow Version
3.9.74
Which test runner are you using?
SpecFlow+ Runner
Test Runner Version Number
N/A
.NET Implementation
.NET 6.0
Project Format of the SpecFlow project
Sdk-style project format
.feature.cs files are generated using
SpecFlow.Tools.MsBuild.Generation NuGet package
Test Execution Method
Visual Studio Test Explorer
SpecFlow Section in app.config or content of specflow.json
N/A
Issue Description
When utilizing two dots ("..") in the test data of SpecFlow scenarios, the behavior becomes erratic, leading to unexpected outcomes. This issue was encountered specifically in the context of defining test scenarios for the "Retirement Age Calculation for Self-Employed Individuals" feature.
Example of behaviou:
Steps to Reproduce
Define a SpecFlow scenario outline with placeholders for calculation date, birth date, gender, and retirement age. Use two dots ("..") to represent dynamic values in the scenario outline examples. Execute the SpecFlow scenario.
` Feature: Retirement Age Calculation for Self-Employed Individuals
Scenario Outline: Determine retirement age based on birth date and calculation date Given the calculation date is "..calculate_date".. And the birth date is "..birth_date".. And the gender is "..gender".. When I calculate the retirement age Then the retirement age should be ..retirement_age..
Examples: | calculate_date | birth_date | gender | retirement_age |
`
Link to Repro Project
No response