Repository navigation
IHookable and IConfigurable callback discrepancy - #2713
Conversation
juherr
left a comment
There was a problem hiding this comment.
Really cool changes, good job! 👍
|
@juherr - I have fixed all the review comments. Please check. |
|
@juherr - Fixed all review comments. Please check. |
|
@juherr - Fixed and responded to your questions. Can you please help take a look |
Closes testng-team#2704 Ensure that TestNG reports scenarios wherein User defines callbacks for configurations/test methods But fails to invoke those callbacks explicitly And also fails in shipping test status to a user recognized status (PASS|FAILURE|SKIP)
juherr
left a comment
There was a problem hiding this comment.
Except the exception flow which looks a bit complex to follow, LGTM
|
This change broke Arquillian, see arquillian/arquillian-core#427 |
|
In the future, these kinds of changes should bump up the major version. |
This was a bug fix and the behaviour was being streamlined. Not sure why this would need a major version.
Feedback taken. Will ensure that when we change these sort of pre requisites we will do it as a major version and not as a minor version. Thank U for calling this out. |
|
@krmahadevan Maybe we can make it configurable? @lprimak Could you explain what is the use case which is failing with this fix? Even if we provide a workaround, don't you think there is an issue in the test suite? |
Sure we can. But I would like to understand why do we need to do that, given the fact that this is undocumented behaviour and we were ensuring that we fixed the discrepancy. |
See my original comment #2713 (comment) The issue isn't that this PR is wrong (it's ok) but the behavior breakage is such that it should not have gone into a minor version upgrade. |
|
@lprimak In fact, we are not considering that a change of behavior is critical when it is not documented or it doesn't break our own test suite. About the current subject, thanks to your feedback, we will provide a new key to configure this behavior. |
Closes #2704
Ensure that TestNG reports scenarios wherein
User defines callbacks for configurations/test methods
But fails to invoke those callbacks explicitly
And also fails in changing test status to a user
recognized status (PASS|FAILURE|SKIP)
Fixes #2704 .
Did you remember to?
CHANGES.txt./gradlew autostyleApplyWe encourage pull requests that:
If your pull request involves fixing SonarQube issues then we would suggest that you please discuss this with the
TestNG-dev before you spend time working on it.
Note: For more information on contribution guidelines please make sure you refer our Contributing section for detailed set of steps.