Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Name property in StepArgumentTransformation #2731

Open
tanguy-c opened this issue Dec 26, 2023 · 1 comment
Open

Missing Name property in StepArgumentTransformation #2731

tanguy-c opened this issue Dec 26, 2023 · 1 comment
Labels

Comments

@tanguy-c
Copy link

tanguy-c commented Dec 26, 2023

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 tanguy-c added the Bug label Dec 26, 2023
@tanguy-c tanguy-c closed this as not planned Won't fix, can't repro, duplicate, stale Dec 26, 2023
@tanguy-c tanguy-c reopened this Dec 26, 2023
@tanguy-c
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant