-
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
Streamline dependencies for configurations #3107
Conversation
WalkthroughThe overall change addresses issues in TestNG related to method sorting and execution order in certain inheritance scenarios, enhancements in handling method dependencies, and improvements in parallel execution setups. It includes fixes for superclass annotations causing exceptions and introduces a mechanism to control listener inclusion at runtime, thereby improving TestNG's robustness and flexibility in test execution management. Changes
Assessment against linked issues
Possibly related issues
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Actionable comments posted: 2
Review Status
Configuration used: CodeRabbit UI
Files selected for processing (6)
- CHANGES.txt (1 hunks)
- testng-core/src/main/java/org/testng/internal/MethodHelper.java (5 hunks)
- testng-core/src/test/java/test/configuration/BeforeClassTest.java (2 hunks)
- testng-core/src/test/java/test/configuration/issue3000/MyBaseTestSample.java (1 hunks)
- testng-core/src/test/java/test/configuration/issue3000/MyInterface.java (1 hunks)
- testng-core/src/test/java/test/configuration/issue3000/TestClassSample.java (1 hunks)
Additional comments not posted (9)
testng-core/src/test/java/test/configuration/issue3000/MyInterface.java (1)
7-9
: Consider adding documentation to thegetDependency
method to clarify its expected behavior and the implications of its default implementation returningnull
.testng-core/src/test/java/test/configuration/issue3000/TestClassSample.java (1)
15-16
: Consider adding a comment to thetest
method to clarify its purpose, especially if it's intended to remain empty as a placeholder or example.testng-core/src/test/java/test/configuration/issue3000/MyBaseTestSample.java (1)
8-8
: Consider adding a comment to thesetDependency
method to clarify its purpose, especially since its implementation is empty.testng-core/src/test/java/test/configuration/BeforeClassTest.java (1)
57-81
: LGTM! The test methodensureIndependentConfigurationsAlwaysRunFirstWhenUsingDependencies
is well-implemented and thoroughly checks the functionality introduced in the PR.testng-core/src/main/java/org/testng/internal/MethodHelper.java (2)
384-403
: The new sorting logic to prioritize independent methods before dependent ones is a significant improvement and is well-implemented.
363-368
: The handling of potentially nullgroupsDependedUpon
usingOptional.ofNullable
inisGroupAgnosticConfigMethod
enhances the method's robustness.CHANGES.txt (3)
1-6
: > 📝 NOTEThis review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [3-22]
Verify that all issues linked with their respective GITHUB or JIRA identifiers have been correctly resolved as mentioned in this update.
1-6
: > 📝 NOTEThis review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [3-22]
Ensure that the documentation of changes is consistent with the actual code modifications and issue resolutions for each item listed.
1-6
: > 📝 NOTEThis review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [3-22]
Confirm that all new features and fixes listed have been properly implemented and tested to ensure they work as expected.
Closes #3000
Fixes #3000 .
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.
Summary by CodeRabbit