-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Use "wrap" semantics for started/finished and opened/closed listener event pairs #3082
Milestone
Comments
Merged
7 tasks
marcphilipp
added a commit
that referenced
this issue
Dec 30, 2022
To allow for multiple listeners that depend on each other to be called in an order consistent with Jupiter's lifecycle callbacks. Issue: #3082
marcphilipp
added a commit
that referenced
this issue
Dec 30, 2022
marcphilipp
added a commit
that referenced
this issue
Dec 30, 2022
marcphilipp
changed the title
Execution order of registered TestExecutionListener.testPlanExecutionFinished is not reverted in comparison to TestExecutionListener.testPlanExecutionStarted
Use "wrap" semantics for started/finished and opened/closed listener event pairs
Dec 30, 2022
marcphilipp
added a commit
that referenced
this issue
Jan 10, 2023
To allow for multiple listeners that depend on each other to be called in an order consistent with Jupiter's lifecycle callbacks. Issue: #3082
marcphilipp
added a commit
that referenced
this issue
Jan 10, 2023
marcphilipp
added a commit
that referenced
this issue
Jan 10, 2023
marcphilipp
added a commit
that referenced
this issue
Jan 10, 2023
To allow for multiple listeners that depend on each other to be called in an order consistent with Jupiter's lifecycle callbacks. Issue: #3082
marcphilipp
added a commit
that referenced
this issue
Jan 10, 2023
marcphilipp
added a commit
that referenced
this issue
Jan 10, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If multiple
TestExecutionListener
s are registered (for exampleListener1
andListener2
) then it's expected thatListener1.testPlanExecutionStarted()
is started first and thenListener2.testPlanExecutionStarted()
as second.However the same order is applied to
testPlanExecutionFinished()
. SoListener1.testPlanExecutionFinished()
is called first andListener2.testPlanExecutionFinished()
is second. This is counter intuitive for example how@BeforeAll
and@AfterAll
behave extensions (more info in #1620)Current behavior is:
but expected is:
Version: JUnit 5.9.1
Steps to reproduce
Register 2 TestExecutionListeners with implemented testPlanExecutionStarted() and testPlanExecutionFinished() and check the order.
The text was updated successfully, but these errors were encountered: