-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Fix/csharp cucumber expression support #65
Fix/csharp cucumber expression support #65
Conversation
- Also updating to support non-verbatim string literal expressions
{ | ||
} | ||
|
||
[When(@"I have Regex parameters like (\d+) and (\d+)")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this or make it consistent with step definitions for the other languages. Ref point 4 in CONTRIBUTING.md.
There is a test that expects exact expressions:
assert.deepStrictEqual(expressions, ['a {uuid}', 'a {date}', /^a regexp$/]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. I'll update this. What are your thoughts on this [When(@"I have Regex parameters like (\d+) and (\d+)")]
expression out of interest? It is a common pattern in the Specflow generated step definitions (using the Visual Studio Specflow extension), so I'm wondering if it's OK to not have it included here as part of the testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for looking into this! I've left a comment about what needs to be fixed.
Also, please add
|
- Still seems to fail on single vs double quoting the expected outputs
Thanks for the review @aslakhellesoy ! The tests still fail on the expectations of a double quoted string as opposed to single quotes. I'm not sure what the best way to resolve this is. |
Superseded by #68 |
🤔 What's changed?
⚡️ What's your motivation?
🏷️ What kind of change is this?
♻️ Anything particular you want feedback on?
The ExpressionBuilder tests fail on the fact the string literal expressions are returned with double quotes instead of single quotes. I'm not sure how to get past this particular failure (or at least, where best to place the correction for it)
📋 Checklist:
- [ ] My change requires a change to the documentation.~ - [ ] I have updated the documentation accordingly.~
This text was originally generated from a template, then edited by hand. You can modify the template here.