Replies: 1 comment 2 replies
-
This question is more about regular expressions, So I think in your case you just need to remove func iRunItWithANumberWhichShouldNotBeA(arg2 string) error {
println(arg2)
return nil
}
func InitializeScenario(ctx *godog.ScenarioContext) {
ctx.Step(`^I run it with a number\d+ which should not be a "([^"]*)"$`, iRunItWithANumberWhichShouldNotBeA)
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all!
I have the following example scenario (sorry for the excess of creativity):
When I run godog, it suggests the following
I know that I can simply change "number(\d+)" to "number1" at the step and remove the int parameter, but that's not my point. Is there a native way of making godog ignore expressions containing numbers to avoid this numbers to be treated as numeric parameters?
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions