You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any chance to bring back the ability to call steps from other step files? It was present in early versions of Specflow, you could basically go with smth like Steps.Call("When user adds two numbers together"); in your steps code. It was removed by Specflow team with the reasoning that unit tests should not need this anti-pattern and they will never bring it back.
Unfortunately a lot of ppl use BDD for end-to-end tests and reusing steps for preconditions or frequently used actions would be very, very helpful.
We still do it, as even worse anti-patterns, like reflection or new StepDefinitions().WhenUserAddsTwoNumbersTogether();. Which is painful to look at.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello.
Not really a new idea, but :)
Any chance to bring back the ability to call steps from other step files? It was present in early versions of Specflow, you could basically go with smth like
Steps.Call("When user adds two numbers together");
in your steps code. It was removed by Specflow team with the reasoning that unit tests should not need this anti-pattern and they will never bring it back.Unfortunately a lot of ppl use BDD for end-to-end tests and reusing steps for preconditions or frequently used actions would be very, very helpful.
We still do it, as even worse anti-patterns, like reflection or
new StepDefinitions().WhenUserAddsTwoNumbersTogether();
. Which is painful to look at.Pretty please? :)
Beta Was this translation helpful? Give feedback.
All reactions