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

Wire protocol: display exceptions in hooks #435

Closed
wants to merge 9 commits into from
Closed

Conversation

mattwynne
Copy link
Member

This replaces #73.

I've investigated, and the cause is that the before/after code in the
central ProgrammingLanugage abstraction runs before the scenario has
started. This means any exceptions at this point are handled like
exceptions in the regular Cucumber source code, rather than
exceptions in the scenario.

I'm deferring this until 2.0

Update: 2015-03-16

Exceptions in Wire protocol hooks no longer crash the Cucumber process, as of #807. However the error from the hook is still not displayed, it looks like.

maxlinc and others added 9 commits March 16, 2015 21:21
@mattwynne this ensures that prepare world is the first thing that is
run for a test case, preventing the inconsistency with what the world _is_
in around hooks.
This is a deficiency in the legacy adapter somewhere.
Legacy adapter requires each test case to have a test step otherwise it
doesn't switch step container and messages get lost.

@mattwynne I think we might be able to deal with this if we switch step
container in before_test_case, but it's something I would prefer to pair
on you with? Seems like a big change, and maybe not something we need to
worry about for 2.0?
Extra test step added back in
@mattwynne mattwynne modified the milestones: 2.1, 2.0 Mar 16, 2015
@tooky tooky added the 🐛 bug Defect / Bug label Mar 19, 2015
@mattwynne mattwynne changed the title Wire protocol: handle exceptions in hooks Wire protocol: display exceptions in hooks Mar 19, 2015
@mattwynne
Copy link
Member Author

I'd like to start again from scratch on this one. Closing.

@mattwynne mattwynne closed this Apr 19, 2016
@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
@luke-hill luke-hill deleted the fix-73 branch March 20, 2019 09:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛 bug Defect / Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants