Skip to content
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

Listeners in xml stops test from running #2855

Closed
2 of 7 tasks
krzysztof-isbrandt opened this issue Dec 16, 2022 · 2 comments
Closed
2 of 7 tasks

Listeners in xml stops test from running #2855

krzysztof-isbrandt opened this issue Dec 16, 2022 · 2 comments

Comments

@krzysztof-isbrandt
Copy link

TestNG Version

7.7.0

Expected behavior

run all tests in XML

Actual behavior

zero test run

Is the issue reproducible on runner?

  • Shell
  • Maven
  • Gradle
  • Ant
  • Eclipse
  • IntelliJ
  • NetBeans

After updating from 6.14.3 to 7.7.0 version, test suite run on Jenkins stopped running tests at all. Below final result from run test:

00:00:39.379 [INFO] Results:
00:00:39.379 [INFO]
00:00:39.379 [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

The issue happens when I have listeners defined in xml and in annotation. When I remove listener tags from xml file, all tests are running as before. Is there any reason for this behavior in newer version?

@krmahadevan
Copy link
Member

@krzysztof-isbrandt - Can you please create a sample project that can be used to reproduce this problem.

@krzysztof-isbrandt
Copy link
Author

hey, sorry for not responding sooner. The issue was has been fixed and the lib works as intended. For some reason we had badly DI service in one test class that mingled with our retry listener that implemented IAnnotationTransformer. After fixing how service is injected, the test suite run correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants