-
Notifications
You must be signed in to change notification settings - Fork 1k
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
IHookable and IConfigurable callback discrepancy #2713
Conversation
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.
Really cool changes, good job! 👍
testng-core/src/main/java/org/testng/internal/invokers/ConfigInvoker.java
Outdated
Show resolved
Hide resolved
@juherr - I have fixed all the review comments. Please check. |
testng-core/src/main/java/org/testng/internal/invokers/TestInvoker.java
Outdated
Show resolved
Hide resolved
testng-core/src/main/java/org/testng/internal/invokers/TestInvoker.java
Outdated
Show resolved
Hide resolved
testng-core/src/main/java/org/testng/internal/invokers/TestInvoker.java
Outdated
Show resolved
Hide resolved
@juherr - Fixed all review comments. Please check. |
testng-core/src/main/java/org/testng/internal/invokers/ConfigInvoker.java
Show resolved
Hide resolved
testng-core/src/main/java/org/testng/internal/invokers/MethodInvocationHelper.java
Show resolved
Hide resolved
testng-core/src/main/java/org/testng/internal/invokers/TestInvoker.java
Outdated
Show resolved
Hide resolved
@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)
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.
Except the exception flow which looks a bit complex to follow, LGTM
testng-core/src/main/java/org/testng/internal/invokers/MethodInvocationHelper.java
Show resolved
Hide resolved
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 autostyleApply
We 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.