Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the PrettyFormatter work by reverting to all-steps-first execution #557

Merged
merged 5 commits into from
Jul 16, 2013

Conversation

brasmusson
Copy link
Contributor

Resolve the mismatch between the PrettyFormatter in the Gherkin library and Cucumber-JVM, by reverting to the all-steps-first-execution which was used in Cucumber-JVM version 1.1.2.
This is safe since the JSONFormatter issues triggering the change to one-step-at-the-time execution in Cucumber-JVM version 1.1.3 (#426) has been resolved by cucumber/gherkin#216 in Gherkin 2.12.0. The JSONFormatterTest added in #426 verifies this.

To aid testing, make it possible to inject a glue when creating a
Runtime. Also add a test specify that a CucumberException is thrown
if no backends are found (or an emtpy collection of backends is
injected).
Adjust the number of . separating the step text from the step result,
so that the results are aligned.
The main issue is that the JUnitFormatter does not handle failures
in the before and after hooks properly. To add flexibility the tests
also specify that the JUnitFormatter should handle both all-steps-first
execution and one-step-at-the-time execution.
Change the JUnitFormatter to handle failures in the before and after
hooks properly. Also change the JUnitFormatter to handle both
all-steps-first execution and one-step-at-the-time execution.
To fix the missmatch between the PrettyFormatter from the Gherkin
library and Cucumber-JVM, by reverting the scenario execution to
all-steps-first execution as in Cucumber-JVM 1.1.2. This is possible
since the JSONFormatter in the Gherkin library in Gherkin 2.12.0
supports all-steps-first execution.
brasmusson added a commit to brasmusson/cucumber-jvm that referenced this pull request Jul 14, 2013
Verify that the changes in PR cucumber#557 indeed fixes cucumber#491 and the other
reports of that the PrettyFormatter is broken.
@aslakhellesoy
Copy link
Contributor

LGTM!

brasmusson added a commit that referenced this pull request Jul 16, 2013
Merge pull request #557 Make the PrettyFormatter work by revering to
all-steps-first execution. This fixes #491 and the other reports of
IndexOutOfBoundsException when using the PrettyFormatter.
Update the History.md
@brasmusson brasmusson merged commit 1622c69 into cucumber:master Jul 16, 2013
@aslakhellesoy
Copy link
Contributor

@brasmusson thanks! Can you also make sure to update History.md for every issue/PR you close?

@brasmusson
Copy link
Contributor Author

@aslakhellesoy The PR:s I got covered, but I make sure to update History.md with issue #491 which I closed.

@brasmusson
Copy link
Contributor Author

@aslakhellesoy #491 added to History.md in 4439178 (when #544 was merged)

@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants