SpecFlowOSS / SpecFlow

#1 .NET BDD Framework. SpecFlow automates your testing & works with your existing code. Find Bugs before they happen. Behavior Driven Development helps developers, testers, and business representatives to get a better understanding of their collaboration
https://www.specflow.org/
Other
2.25k stars 754 forks source link

Missing Name property in StepArgumentTransformation #2731

Open tanguy-c opened 11 months ago

tanguy-c commented 11 months ago

SpecFlow Version

3.9.74

Which test runner are you using?

NUnit

Test Runner Version Number

3.14.0

.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

No response

Issue Description

Hi,

It seems StepArgumentTransformation should have a Name property according to the doc

[StepArgumentTransformation("v(.*)", Name = "my_version")]

But I can't find witch using / nuget to add

Steps to Reproduce

This code should be valid and StepArgumentTransformation should have a Name property.

    [StepArgumentTransformation("is transformed", Name = "is_transformed")]
    public string Transform()
        => "have been transformed";

    [Then("my text {is_transformed}")]
    public void ThenMyTextIsTransformed(string transformedText)
    {
        // Assert transformedText is "have been transformed"
    }

Link to Repro Project

No response

tanguy-c commented 11 months ago

This feature is not in a stable NuGet, even if it's in the doc. Maybe the problem is: Why the only doc available is canary?