Chain Execution in Behat 3

677 views
Skip to first unread message

Patrick Polloni

unread,
May 14, 2014, 6:09:44 AM5/14/14
to be...@googlegroups.com
Does anyone know how to create an execution chain in Behat 3?

Konstantin Kudryashov

unread,
May 14, 2014, 6:19:35 AM5/14/14
to be...@googlegroups.com
You don’t. Use the code tools like abstraction, compositions and inheritance together with a simple method calls :) Chained steps was an anti-pattern. It was hard to debug and maintain them. And in most cases, what could be done with 2-3 chained steps could be done with 1-2 method calls.

Konstantin Kudryashov
--- PHP developer, BDD evangelist, Scrum master

a: http://about.me/everzet
b: http://everzet.com
c: https://github.com/everzet

On 14 May 2014 at 11:09:45, Patrick Polloni (patrick...@gmail.com) wrote:

Does anyone know how to create an execution chain in Behat 3?

--
You received this message because you are subscribed to the Google Groups "Behat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to behat+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Patrick Polloni

unread,
May 14, 2014, 8:36:46 AM5/14/14
to be...@googlegroups.com
Thank you Konstantin. Actually I had already replaced it with a method call as it seemed the more natural way to do it, I just wanted to be sure I wasn't missing anything.
Reply all
Reply to author
Forward
0 new messages