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.22k stars 751 forks source link

Missing Name property in StepArgumentTransformation #2731

Open tanguy-c opened 6 months ago

tanguy-c commented 6 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 6 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?