-
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
regular expression in "dependsOnMethods" not work #141
Comments
Hi missedone, From the source code, I see that test ng using Pattern.matches(regexp, methodName) to check if current method should be invoked. At there, the methodName is like "package name.classname. methodname" Brs, |
I think using find is better compared with matches. @cbeust Do you have any comments for this problem? |
Using TestNG 6.8 Hi liked this feature, looked good on the user guides but:
Looks like I'll need to dive into the code for having what I need ;) |
yeah this still seems broken. And my test looks like
|
@syntastical you tried in version |
@krmahadevan yeah we're on 7.6.1. The problem seems to be around https://github.com/cbeust/testng/blob/cd85bcb7afebbaecd2299cbc72632e27f89a441b/testng-core/src/main/java/org/testng/DependencyMap.java#L56 When it gets here "methodName" is the regex |
@syntastical - Would you be willing to help file a pull request for this (Since you seem to have spent time and effort in debugging this)? We can help you get it reviewed/merged. |
hi, cbeust
I read the user guide
so i tried to use regular expression in "dependsOnMethods", for example:
but i got an error below:
org.testng.TestNGException:
example.testMethod3() depends on nonexistent method test.*
at org.testng.internal.MethodHelper.findDependedUponMethods(MethodHelper.java:98)
though the workaround is quit straightforward, just let you know this issue.
thanks
The text was updated successfully, but these errors were encountered: