You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Scott Babcock (Jira)" <ji...@apache.org> on 2022/04/07 22:48:00 UTC
[jira] [Comment Edited] (SUREFIRE-1890) Not compatible with TestNG 7.4.0
[ https://issues.apache.org/jira/browse/SUREFIRE-1890?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17519202#comment-17519202 ]
Scott Babcock edited comment on SUREFIRE-1890 at 4/7/22 10:47 PM:
------------------------------------------------------------------
The implementation of this fix breaks the ability to run tests sequentially:
{code:java}
[ERROR] There was an error in the forked process
[ERROR] Unsupported TestNG parallel setting: none ( only METHODS or CLASSES supported )
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: There was an error in the forked process
[ERROR] Unsupported TestNG parallel setting: none ( only METHODS or CLASSES supported )
{code}
The default value for an unspecified setting is "none", not {{null}}.
was (Author: scoba):
The implementation of this fix breaks the ability to run tests sequentially:
{code:java}
[ERROR] There was an error in the forked process
[ERROR] Unsupported TestNG parallel setting: none ( only METHODS or CLASSES supported )
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: There was an error in the forked process
[ERROR] Unsupported TestNG parallel setting: none ( only METHODS or CLASSES supported ) {code}
> Not compatible with TestNG 7.4.0
> --------------------------------
>
> Key: SUREFIRE-1890
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1890
> Project: Maven Surefire
> Issue Type: Bug
> Components: TestNG support
> Affects Versions: 3.0.0-M5
> Reporter: Joe Barnett
> Assignee: Tibor Digana
> Priority: Major
> Fix For: 2.22.3, 3.0.0-M6
>
>
> TestNG 7.4.0 removed the deprecated method {{org.testng.xml.XmlSuite.setParallel(java.lang.String)}}. Trying to run tests with parallelism set results in:
> {code:java}
> java.lang.NoSuchMethodError: 'void org.testng.xml.XmlSuite.setParallel(java.lang.String)'
> at org.apache.maven.surefire.testng.conf.TestNGMapConfigurator.configure(TestNGMapConfigurator.java:71)
> at org.apache.maven.surefire.testng.conf.TestNG510Configurator.configure(TestNG510Configurator.java:40)
> at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:111)
> at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:112)
> at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:99)
> at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:145)
> at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:428)
> at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
> at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:562)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:548)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)