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

Steps that throw an error are not marked FAILED #223

Closed
gjw opened this issue Oct 3, 2016 · 3 comments
Closed

Steps that throw an error are not marked FAILED #223

gjw opened this issue Oct 3, 2016 · 3 comments
Labels

Comments

@gjw
Copy link

gjw commented Oct 3, 2016

Weird and old, but relevant.

I'm trying to revive or fork marvin-js. Marvin depends on yadda 0.16.0, everything is fine. Update the dependencies, and updating yadda causes a major problem. I bisected the failure point to between 0.17.10 and 0.18.0. It seems that it's happening in lib/Macro.js, in Macro.interpret() (the situation remains the same from 18 -> current).

Somehow, wrapping the result = fn... in the try/catch is preventing actual errors from being listed as a failure. Like,

  steps.when("I throw an error", function() {
    throw new Error('throwin\' it!');
  });

passes.

It seems likely to me that it's an interaction problem (else yadda has just been letting failing tests pass for several releases), but I don't have the faintest idea where to look next. Ideas?

@cressie176 cressie176 added the bug label Oct 3, 2016
@cressie176
Copy link
Member

cressie176 commented Oct 3, 2016

Hi. Thanks for reporting. Looks like a bug affecting synchronous steps only. Investigating.

@cressie176
Copy link
Member

cressie176 commented Oct 3, 2016

Just released 0.22.0. Please let me know how you get on. Thanks.

@cressie176 cressie176 reopened this Oct 3, 2016
@gjw
Copy link
Author

gjw commented Oct 4, 2016

Yup, that seems to have fixed it.

Thanks much!

@gjw gjw closed this as completed Oct 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants