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

Revisit order of registration for RegisterGlobalTearDown() #304

Open
3 tasks
Suremaker opened this issue Jul 4, 2023 · 0 comments
Open
3 tasks

Revisit order of registration for RegisterGlobalTearDown() #304

Suremaker opened this issue Jul 4, 2023 · 0 comments
Labels
improvement An improvement of existing feature (usability / performance etc) LightBDD 4.X Future version of LightBDD
Milestone

Comments

@Suremaker
Copy link
Collaborator

Description

As per https://github.com/LightBDD/LightBDD/wiki/SetUp-and-TearDown#registerglobalsetup RegisterGlobalTearDown() are executed in the reverse order to the SetUps to ensure the most outer activities (ones that have been setup first) are torn down as last one.
While this behavior is expected, it forces calling RegisterGlobalTearDown() as a very first entry if it is expected the tear down to be called as the very last one - which can be counterintuitive.

As part of this ticket it should be explored on how to allow registering setups and teardowns in the natural order while still maintaining proper order of the execution.

Progress

  • Feature is implemented,
  • Ensured backward-compatibility,
  • Ensured good debugging experience
@Suremaker Suremaker added the improvement An improvement of existing feature (usability / performance etc) label Jul 4, 2023
@Suremaker Suremaker added the LightBDD 4.X Future version of LightBDD label Jul 20, 2023
@Suremaker Suremaker added this to the 4.0.0 milestone Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement An improvement of existing feature (usability / performance etc) LightBDD 4.X Future version of LightBDD
Projects
None yet
Development

No branches or pull requests

1 participant