-
Notifications
You must be signed in to change notification settings - Fork 543
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
[SUREFIRE-1890] Support TestNG 7.4.0 #339
Conversation
Note I'm not sure the best way to write a test for this given it needs to run on at least TestNG 6.9.7+ (based on the enum's existence, I've only tested against TestNG 7.4.0 where it appears to work correctly). There's also probably some opportunity for a minor refactor to remove the copy / paste of compatible configuration (setting thread count / dataproviderthreadcount ) by abstracting setParallel(), but not sure how worth it that would be? |
...refire-testng/src/main/java/org/apache/maven/surefire/testng/conf/TestNG740Configurator.java
Outdated
Show resolved
Hide resolved
...refire-testng/src/main/java/org/apache/maven/surefire/testng/conf/TestNG740Configurator.java
Outdated
Show resolved
Hide resolved
...refire-testng/src/main/java/org/apache/maven/surefire/testng/conf/TestNG740Configurator.java
Outdated
Show resolved
Hide resolved
You can write the integration test, see the module
Let's refactor this code in another PR. |
@Tibor17 updated as requested and added a simple integration test. Still need to catch a ClassNotFoundException on the Class.forName(), which is also happening in the code you referenced so hope that's ok. |
I think we can avoid also
|
Yep that works great, not sure how I missed tryLoadClass when I looked for something like it. |
Use reflection to configure parallel arguments, as the setParallel(String) method has been removed and the enum equivalent doesn't exist in older TestNG versions. Add an integration test that runs a simple do-nothing test with TestNG 7.4.0 and parallel setting of `methods`.
@josephlbarnett |
Thx for the quick turaround. Is there an estimated release date for 3.0.0-M6? (just asking, not pressuring) |
@josephlbarnett |
What's the status on getting this released? |
@Tibor17 Now that TestNG 7.5 is out, does this get us any closer to a released fix for this bug? |
I'd also like to see a release with this fix. Unfortunately all versions of testng prior to 7.5.0 are subject to a number of CVEs in their dependencies which are hard to fix in our environment because of this issue. The specific CVEs in the last compatible testng version (7.3.0) are as follows if it's at all helpful: |
What is the status on getting this released? |
@josephlbarnett At last we have fixed three CVEs and now we support JDK 18 which is very important as well. Meanwhile please use the SNAPSHOT version of the plugins from the ASF repo. It is stable and it is related to our master branch, see the ASF Jenkins CI. |
@josephlbarnett |
@Tibor17 Where can I find what 2.22.x supports vs. 3.0.0 to better determine whether that would work? |
@josephlbarnett |
The version |
fwiw, we'd prefer something like a |
@Tibor17 Can you confirm that 3.0.0-M6 supports TestNG 7.5? |
@dankirkd 3.0.0-M6 was released last week - you can check. |
@dankirkd |
Use reflection to configure parallel arguments,
as the setParallel(String) method has been removed
and the enum equivalent doesn't exist in older
TestNG versions