-
-
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
Make the scenario object available in hooks compatible with v1.3.x #814
Conversation
IMO the People need to get used to thinking of that thing as a test case anyway. |
See also #430 |
to scenario outline objects used in hooks.
26626e1
to
6957b52
Compare
I pushed up the change everyone agree on to the master (cucumber/common@eb950d1), that the keyword should not be part of the name exposed to the hooks. I leave the PR open (rebased) as a place holder for the discussion if we should opt for exact compatibility with v1.3.x, and if not, whether the example row cell values should be make available to hooks (in v1.3.x they are part of the name). |
I think we should expose the cell values, but through their own attributes. |
Maybe with a method |
I say we close this and don't merge. Any objections? |
No objection. |
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. |
#768 identified that the
scenario.name
of the scenario object available in hooks includes the keyword, which makes it different compared to the case in v1.3.x. Unfortunately, also after the changes triggered by #768, the keyword is still included inscenario.name
(see the before_hook.feature).In case of Scenario Outlines, achieving full compatibility with v1.3.x is rather complicated as in that case
scenario.name
is cell values for the example row, andscenario.scenario_outline.name
is the name of the Scenario Outline. The name of thetest_case
is neither, it is<scenario outline name>, <examples table name> (row <nr>)
.The name of the
test_case
is in a sense quite informative, so it raises the question of how important backward compatibility is in this specific case.