throw SkipException in SuiteListener:onStart will hang start from 7.9.0 #3116
sonwan2020
started this conversation in
General
Replies: 1 comment
-
I implemented the interface IAlterSuiteListener, and clear the tests conditionally. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have lots of suites, and we use a centralized testng.xml with
Sometimes we want to skip some suites conditionally, so I add some logic in SuiteListener:onStart, and throw SkipException on some conditions.
Before release 7.8.0, this works.
But start from 7.9.0, there is a NPE error on thread, and the main job just hang there:
What is the suggested way to skip a suite conditionally?
I have append a simple project to reproduce the failures.
just run
mvn test
in the project.test.zip
Beta Was this translation helpful? Give feedback.
All reactions