-
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
TestNG should provide an Api which allow to find all dependent of a specific test #893
Comments
@juherr - What is the expectations of this issue. I would specifically like to know the following:
It would be good if you could please help add some additional context into this issue. |
It is for the integrations. The need is to add the dependent |
You mean something like |
Yes, exactly. It exists in the model but not available by the api. About the naming, I think something closer the annotation attribute name will be better. |
What attribute are you referring to here? In TestNG, we only have a mapping from a child (Dependent method) to a parent (Independent method upon which the dependent method depends on) But here we are asking for all children, given a parent. public class TestClassSample {
@Test
public void independent() {}
@Test(dependsOnMethods = "independent")
public void dependent() {}
@Test(dependsOnMethods = "independent")
public void anotherDependent() {}
} Here we are asking for an API, wherein if we give input as If yes, then I think the api should be called as For upstream dependencies ( which is what |
I will check again. I thought the need was to have getMethodsDependedUpon() returning object instead of string |
@juherr - I have raised a PR which now provides both upstream and downstream dependencies for a test method. Please check. |
https://issues.apache.org/jira/browse/SUREFIRE-1073
The text was updated successfully, but these errors were encountered: