Skip to content

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