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

allow before / after :each, :all blocks within a step_for block #93

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

allow before / after :each, :all blocks within a step_for block #93

wants to merge 2 commits into from

Conversation

stephenprater
Copy link

before and after hooks defined in a step_for block are automatically
scoped to the tag of the step_for block. before :all blocks are run
before each feature, while before :each blocks are run before each
scenario. The situation is similar for after blocks

I'm not super thrilled with the testing strategy that I adopted here - so
If you have any suggestions for a prettier way to test that this is working,
I'd be all ears.

Stephen Prater (@laptop) added 2 commits March 18, 2013 23:09
  before and after hooks defined in a step_for block are automatically
  scoped to the tag of the step_for block. before :all blocks are run
  before each feature, while before :each blocks are run before each
  scenario.  The situation is similar for after blocks
@jnicklas
Copy link
Owner

Sorry for the super late reply on this. I agree the tests aren't super nice. At least we'd want the tests to be in the integration spec. In principle this is a nice idea though.

@takaokouji
Copy link

👍

@marian13
Copy link

marian13 commented Dec 9, 2021

It would be great to have this feature even in 2021...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants