plasma-cash icon indicating copy to clipboard operation
plasma-cash copied to clipboard

Behave should not collide with step names

Open boolafish opened this issue 6 years ago • 1 comments

in our integration tests, there are several steps in different feature share the same name. eg. userA deposit 1 eth to plasma, userA transfers 1 eth to userB.

They should be using the same implementation. Currently there are multiple implementation for the same step name. However, behave framework does not ensures that which implementation it would take. see: https://github.com/behave/behave/issues/496. Though luckily it worked in our CI, but It breaks in my local env.

Here's my screenshot: screen shot 2018-07-14 at 4 29 47 pm

You can see it is calling challenge_spent_coin_flow.feature:3 first but calling challenge_double_spending_flow.py:26 later.

boolafish avatar Jul 14 '18 07:07 boolafish