-
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
Inherited groups should run only for groups selection #2167
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.
I suppose the previous tests were failing without the changes but I'm afraid of regressions for users too.
Could you check again if we can avoid or minimize the changes?
src/main/java/org/testng/internal/GroupConfigMethodArguments.java
Outdated
Show resolved
Hide resolved
I have tried my level best to keep the impact area to the minimum. The sleuth of tests that had to be changed, was only because they involved groups and now these tests need to be explicitly run in group mode to basically restore the validation that each of the tests are doing. I guess this should be ok. |
@juherr - I have fixed the review comments. Please take a look. |
Rebased off of master.. @cbeust - Please help provide your inputs. |
Just an idea that will allow the merge without the need of @cbeust approbation: We should be safe enough then. |
Am not too excited about a configuration driven approach here for two reasons:
I will wait to hear back from @cbeust on this. |
ping @cbeust |
Closes testng-team#2152 When a class is annotated with a “@test” and which includes one or more groups, and when the test class has one or more configuration methods, currently TestNG inherits the groups information and ends up running all the configurations even though group filtering is not enabled.
@krmahadevan Could we get published a new beta release (like 7.0.1-beta1) with this fix, please? |
Closes #2152
When a class is annotated with a “@test” and which
includes one or more groups, and when the test class
has one or more configuration methods, currently
TestNG inherits the groups information and ends
up running all the configurations even though
group filtering is not enabled.
Fixes #2152 .
Did you remember to?
CHANGES.txt
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.