Closed h4kim-dyze closed 2 years ago
What is the problem with this behavior?
It is a pattern matching, if you want to disallow extra things, you could use a regex and fail if there are extra things matched.
As @fliiiix suggested, the way to go here is to use a regex to properly match full steps:
@given(re.compile("I run the app$"))
def given_run_app(step):
...
seems to be solved feel free to reopen
Describe the bug radish do not check the whole step from feature file, if we define the step
@given("I run the app")
not only this exact step can be used but alsoGiven I run the app some text here
Environment and Version
radish --version
): 0.13.4To Reproduce
Expected behavior the step shouldn't be matched because it create some misconceptions if we have some similar steps we can end by executing a different step