-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Embed doesn't work with scenario outlines, JSON formatter and --expand #804
Comments
Thanks very much for the detailed bug report - textbook! Could you try this again with the cucumber 2.0.0.rc.3 which has a lot of changes in this area. @brasmusson do you happen to know if this specific bug is fixed for 2.0? I can't remember. |
Well, spriteCloud is a QA company, so if I can't provide a good bug report, I'd not set a very good example ;) Unfortunately, cucumber 2.0.0.rc.3 crashes - whether I run it just with |
With the patch to #805 applied, it works. However, I've got to say that the JSON output isn't what I'd expect. Let me file a different issue for that, since it's technically a different problem. |
OK I'm closing this issue. |
Delay sending the step output to the gherkin formatter in the JSONFormatter, until step has been called on the gherkin formatter.
After fixing #806, I ported the fix back to the v1.3.x-bugfix branch, so now "Embed does work with scenario outlines, JSON formatter and --expand" also on that branch. |
Awesome sauce, thanks guys! |
So, quick question. What's the expected timeline for 1.3.20, then? That's when we can expect the fix in the wild, it seems? (2.x.rc.y is IMHO viable once the "rc" part vanishes). |
@jfinkhaeuser I'd encourage you to try 2.0, despite the RC status - it has only a few minor bugs as far as we know. |
It's not about trying - I have tried it. It's about the "RC" label making some stakeholders nervous. |
Can you be more specific about their concerns? I think 2.0 is already much better than 1.3. Maybe we should just ship it... |
If there's no more features to be added or known bugs to be fixed, why not ship it indeed? The concern, whether valid or not, is about software that's not ready for production. If it is ready for production, why don't you make that statement by releasing it? If it is truly not ready for production, 1.3.x remains the latest stable release line. |
Well, cucumber 2.0.0 seems to do the trick. Thanks, guys! |
\o/ |
By the way @jfinkhaeuser it was your comment above that inspired me to get Cucumber 2.0.0 released - thanks! |
Nice - if we can contribute in whichever small way to cucumber, then that's awesome :) |
Live in v1.3.20 |
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. |
Software
Expected Behaviour
The
embed
function should work in all cases.Actual Behavior
The combination of scenario outlines, the
--expand
parameter, and the JSON formatter don't seem to work.Example
Then running:
Produces:
For easier readability, that stack trace is this:
Analysis
Further digging shows that the fault is triggered in the JSON formatter in Gherkin, namely that
@current_step_or_hook
doesn't get initialized before it's referenced.The variable would get initialized in the formatter's
step
method, and it should be called ingherkin_formatter_adapter.rb
somewhere. In that file, thestep
method is not called in the case of scenario outlines (seebefore_step
hook).The text was updated successfully, but these errors were encountered: