-
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
IAnnotationTransformer doesn't run when specified as an @Listeners #446
Comments
Why this issue was closed? The problem is alive (v. 6.8.21). |
From the documentation: (http://testng.org/doc/documentation-main.html) The @Listeners annotation can contain any class that extends org.testng.ITestNGListener except IAnnotationTransformer and IAnnotationTransformer2. The reason is that these listeners need to be known very early in the process so that TestNG can use them to rewrite your annotations, therefore you need to specify these listeners in your testng.xml file. |
Looks like the issue is still alive |
It wasn't an issue to begin with. The Javadocs I believe explicitly calls
out that IAnnotationTransformer cannot be injected via a @listeners
annotation.
TestNG is working as designed in this case.
|
Hello, |
Changes note says @listeners is supported for IAnnotationTransformer since 6.9.10 version. However it still didn't work for me using 6.9.10. |
@ChenaLee - Not true to the best of my knowledge. I think the javadocs makes this explicit. |
IAnnotationTransformer only works when specified in the suite xml file with . I would like it to also run the transformer when specified in the @Listener annotation
Example:
The text was updated successfully, but these errors were encountered: