Skip to content

Support for named StepArgumentTransformation in C#/Specflow #221

Description

@itsUndefined

👓 What did you see?

Given the following StepArgumentTransformation:

[StepArgumentTransformation(@"(\d+(?:,\s*\d+)*)", Name = "comma_separated_integers")]
public IEnumerable<int> TransformCommaSeparatedIntegers(string input)
{
    return input
        .Split(",")
        .Select(int.Parse);
}

✅ What did you expect to see?

I expected it to be picked up automatically as it's inside a glue file. I instead got the message: Found 0 parameter types in those glue files

📦 Which tool/library version are you using?

Latest CucumberOpen.cucumber-official VSCode extension version ( 1.10.0 )
Latest SpecFlow.NUnit C# package ( 4.0.31-beta )

🔬 How could we reproduce it?

No response

📚 Any additional context?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions