-
Notifications
You must be signed in to change notification settings - Fork 141
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
feat(#1218): add events on TestListener #1313
feat(#1218): add events on TestListener #1313
Conversation
what is the difference of |
Maybe we can rename |
97fb8b8
to
32f2a48
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments to better understand the use case. Many thanks!
core/citrus-base/src/main/java/org/citrusframework/DefaultTestCase.java
Outdated
Show resolved
Hide resolved
32f2a48
to
6de0174
Compare
Could you please check the associated issued #1218? I added an example there. Hope the use case gets clear from that. |
Please re-check the javadoc. Hope that we have documented it well now. |
Sry for bringing up a MR in draft state. I think it is now ready for review. Some things have changed after our internal review. Could you please re-check the methods on the interface, having in mind the sketched use case in #1218. From that please give your final opinion on the feature and method names. |
core/citrus-base/src/test/java/org/citrusframework/DefaultTestCaseTest.java
Outdated
Show resolved
Hide resolved
core/citrus-base/src/test/java/org/citrusframework/DefaultTestCaseTest.java
Outdated
Show resolved
Hide resolved
core/citrus-base/src/test/java/org/citrusframework/DefaultTestCaseTest.java
Outdated
Show resolved
Hide resolved
core/citrus-base/src/test/java/org/citrusframework/DefaultTestCaseTest.java
Outdated
Show resolved
Hide resolved
core/citrus-base/src/test/java/org/citrusframework/DefaultTestCaseTest.java
Show resolved
Hide resolved
core/citrus-base/src/test/java/org/citrusframework/DefaultTestCaseTest.java
Show resolved
Hide resolved
core/citrus-base/src/test/java/org/citrusframework/DefaultTestCaseTest.java
Show resolved
Hide resolved
core/citrus-base/src/test/java/org/citrusframework/DefaultTestCaseTest.java
Outdated
Show resolved
Hide resolved
1f1d462
to
35a4eaf
Compare
10d1e28
to
22a89d4
Compare
Looks good to me. |
Still I would like a comment from @christophd as this significantly touches the heart of the framework. |
22a89d4
to
fa8b9b4
Compare
core/citrus-api/src/main/java/org/citrusframework/report/TestListener.java
Show resolved
Hide resolved
core/citrus-api/src/main/java/org/citrusframework/report/TestListener.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well done. no change requested from my side, maybe suggested 😉 up to you.
fd7490b
to
7dc45b5
Compare
okay folks, I have had a tough week last week. I am back on having a look this week. Sorry for the delay |
ce9ac5b
to
e431265
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the enhancement. Looks good.
As mentioned in one of the comments I would prefer to move the onTestFinish()
method after the final actions have finished. It feels more natural IMO as the final actions belong to the test. Sort of a breaking change, but someone can use the new onFinalActionsStart()
.
Also, still not a fan of the method names onBeforeSequenceBeforeTest()
. I'd suggest to use onBeforeTestStart()
instead.
So we end up with this:
- onBeforeSequenceBeforeTest -> onBeforeTestStart
- onAfterSequenceBeforeTest -> onBeforeTestFinish
- onBeforeSequenceAfterTest -> onAfterTestStart
- onAfterSequenceAfterTest -> on AfterTestFinish
We could also use *End
instead of *Finish
. No strong opinion on that detail
Many thanks. Please let me know what you think
Thanks for the valuable feedback. I think we mixed implementation name 'SequenceBefore' with the interface name 'BeforeTest'. Finally, we come up with the following naming:
|
6ee2b6c
to
49d1363
Compare
49d1363
to
824d69f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
Please check that the pipeline executes. |
2f903a4
to
a04c129
Compare
Co-authored-by: Thorsten Schlathoelter<[email protected]>
a04c129
to
332b6d0
Compare
Ok everyone, the pipeline is green. I'll proceed with the merge if there are no further objections. |
Related issue.
The following methods have been added to the TestListener interface:
Tests have been written in DefaultCaseTest