-
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
Fix Config invocation order for inheritance #2503
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -665,4 +665,23 @@ public XmlGroups getXmlGroups() { | |
public boolean nameMatchesAny(List<String> names) { | ||
return names.contains(getName()); | ||
} | ||
|
||
/** | ||
* @param xmlTest - The {@link XmlTest} that represents the current <code>test</code> | ||
* @return - <code>true</code> if group based selection was employed and false otherwise. | ||
*/ | ||
public static boolean isGroupBasedExecution(XmlTest xmlTest) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why static? why XmlTest as argument? why not just xmlTest.isGroupBasedExecution()? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @martinaldrin - Any specific reasons behind adding comments on a PR that is already merged ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just saw it when I tried to figure out the bug that I found in #2664 |
||
if (xmlTest == null) { | ||
return false; | ||
} | ||
XmlGroups xmlGroups = xmlTest.getXmlGroups(); | ||
if (xmlGroups == null) { | ||
return false; | ||
} | ||
XmlRun xmlRun = xmlGroups.getRun(); | ||
if (xmlRun == null) { | ||
return false; | ||
} | ||
return !xmlRun.getIncludes().isEmpty(); | ||
} | ||
} |
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 guess this is the reason why dependsOnGroup and dependsOnMethods is broken in #2664
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.
Feel free to propose a fix ;)