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 Before|After All and Before|AfterEachTest logic #46

Open
miroslavpojer opened this issue Dec 5, 2023 · 0 comments · May be fixed by #47
Open

Introduce Before|After All and Before|AfterEachTest logic #46

miroslavpojer opened this issue Dec 5, 2023 · 0 comments · May be fixed by #47
Assignees
Labels
enhancement New feature or request workinprogress

Comments

@miroslavpojer
Copy link
Collaborator

Background

In the design of test suites, there can be a useful ability to design common logic

  • before all suites and test will be started. Similar to after alternative.
  • before each test inside the suite for each test. Similar to after alternative.

Feature

  • Introduce logic for BeforeAll - logic will be started before all other logic
  • Introduce logic for AfterAll - logic will be started before all other logic
  • Introduce logic for BeforeEachTest - logic will be started before each test inside Suite where defined.
  • Introduce logic for AfterEachTest - logic will be started after each test inside Suite where defined.

Update:

  • Rename existing Before and After logic to BeforeSuite and AfterSuite to better fit.
@miroslavpojer miroslavpojer added the enhancement New feature or request label Dec 5, 2023
@miroslavpojer miroslavpojer self-assigned this Dec 5, 2023
@miroslavpojer miroslavpojer moved this from 🆕 To groom to 🏗 In progress in CPS small repos project Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request workinprogress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant