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

Support for named StepArgumentTransformation in C#/Specflow #221

Open
itsUndefined opened this issue Jun 24, 2024 · 0 comments
Open

Support for named StepArgumentTransformation in C#/Specflow #221

itsUndefined opened this issue Jun 24, 2024 · 0 comments
Labels
c_sharp ⚡ enhancement Request for new functionality

Comments

@itsUndefined
Copy link

itsUndefined commented Jun 24, 2024

👓 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

@kieran-ryan kieran-ryan added ⚡ enhancement Request for new functionality c_sharp labels Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c_sharp ⚡ enhancement Request for new functionality
Projects
None yet
Development

No branches or pull requests

2 participants