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

Upgrade cucumber to access @BeforeAll and @AfterAll #365

Open
flyingsilverfin opened this issue Dec 17, 2021 · 1 comment
Open

Upgrade cucumber to access @BeforeAll and @AfterAll #365

flyingsilverfin opened this issue Dec 17, 2021 · 1 comment

Comments

@flyingsilverfin
Copy link
Member

Problem to Solve

Our BDD test implementations currently have a hack to only run a part of the Before scenario hook once, protected by a boolean. This was caused by Cucumber's Java implementation not making @BeforeAll and @afterall available in the way JUnit does. However, as of cucumber/cucumber-jvm#1876 it appears the Java Cucumber implementation offeres these hooks.

Proposed Solution

Replace the hack to run part of Before block only once using @BeforeAll and @AfterAll in new Cucumber releases.

@haikalpribadi
Copy link
Member

Let's find out the difference with @BeforeClass and @AfterClass

@alexjpwalker alexjpwalker removed their assignment Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants