The JSONFormatter should record before hooks in the next scenario #570

Merged
merged 1 commit into from Oct 12, 2013

2 participants

@brasmusson

For all but the before hooks executed before the first scenario, the JSONFormatter records them for the latest started scenario, instead of the scenario be to executed next. The before hook data is shifted up one scenario, so generally the first scenario will record two hook executions for each before hook, and the last scenario none.

@brasmusson brasmusson The JSONFormatter should record before hooks in the next scenario
For all but the before hooks executed before the first scenario, the
JSONFormatter records them for the latest started scenario, instead of
the scenario be to executed next. The before hook data is shifted up
one scenario, so generally the first scenario will record two hook
executions for each before hook, and the last scenario none.
61069ff
@aslakhellesoy aslakhellesoy added a commit that referenced this pull request Oct 12, 2013
@aslakhellesoy aslakhellesoy Attributions for #598 and #570 25f198b
@aslakhellesoy aslakhellesoy merged commit 61069ff into cucumber:master Oct 12, 2013

1 check failed

Details default The Travis CI build failed
@brasmusson brasmusson deleted the brasmusson:json-formatter-before-hooks branch Feb 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment