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

Introduce fixture aliases in gherkin style #799

Closed
raniejade opened this issue Sep 25, 2019 · 2 comments · Fixed by #818
Closed

Introduce fixture aliases in gherkin style #799

raniejade opened this issue Sep 25, 2019 · 2 comments · Fixed by #818
Milestone

Comments

@raniejade
Copy link
Member

The following fixture aliases will be introduced:

  • Scenario.beforeScenario -> Scenario.beforeGroup
  • Scenario.afterScenario -> Scenario.afterGroup
  • Scenario.beforeEachStep -> Scenario.beforeEachTest
  • Scenario.afterEachStep -> Scenario.afterEachTest
  • Feature.beforeEachScenario -> Feature.beforeEachGroup
  • Feature.afterEachScenario -> Feature.afterEachGroup
  • Feature.beforeFeature -> Feature.beforeGroup
  • Feature.afterFeature -> Feature.afterGroup

The aliased fixtures will be deprecated in the context of the gherkin style. This can be done by:

class Feature(val delegate: GroupBody): LifecycleAware by delegate {
   ...

   @Deprecated(..., replaceWith = ReplaceWith("beforeEachScenario"))
   override fun beforeEachGroup(fixture: Fixture) { delegate.beforeGroup(fixture) }
}
@raniejade raniejade added this to the 2.0.9 milestone Sep 25, 2019
@kamilmasyhur
Copy link

I see that you develop 2.1.0, already 28%
are you going to develop this? @raniejade

@raniejade
Copy link
Member Author

I have not worked on the 2.1.0 milestone for quite a while now, it mostly contains task for supporting Kotlin Native. This will be included in the next release (2.0.9)

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

Successfully merging a pull request may close this issue.

2 participants