cucumber/cucumber-jvm — Issue #125: "After"-Hook does not work with groovy
Author: mpasch
Created: 2012-01-02 16:40:16+00:00
State: open

Hello,

when experimenting with cucumber-jvm and groovy, I encountered the problem, that the "After"-Hook is called right after the "Before"-hook.

I might have found the cause in GroovyBackend.java:

Lines 78-80 in RC2:

> public void addAfterHook(TagExpression tagExpression, Closure body) {
> world.addBeforeHook(new GroovyHookDefinition(body, tagExpression, instance));
> }

Happy New Year!

Mattis