Maven Surefire

Not compatible with TestNG 5.2: java.lang.NoSuchMethodError: org.testng.xml.XmlSuite.setParallel(Z)V

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 2.4
  • Component/s: TestNG support
  • Labels:
    None
  • Environment:
  • Complexity:
    Intermediate
  • Number of attachments :
    0

Description

I have project with dependency to testng and surefire plugin as in Environment.
I run tests and get exception:

org.apache.maven.surefire.booter.SurefireExecutionException: org.testng.xml.XmlSuite.setParallel(Z)V; nested exception i
s java.lang.NoSuchMethodError: org.testng.xml.XmlSuite.setParallel(Z)V
java.lang.NoSuchMethodError: org.testng.xml.XmlSuite.setParallel(Z)V
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:135)
at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)

Please, correct surefire to be compatible with new testng.

Activity

Hide
David Dunwoody added a comment -

Reproduced here with TestNG 5.1+ and the 2.8-SNAPSHOT version of surefire.

Show
David Dunwoody added a comment - Reproduced here with TestNG 5.1+ and the 2.8-SNAPSHOT version of surefire.
Hide
David Dunwoody added a comment -

^^ Apologies, that should read TestNG 5.2+

Show
David Dunwoody added a comment - ^^ Apologies, that should read TestNG 5.2+
Hide
Cyrill Ruettimann added a comment -

Also applies to TestNG 5.5

Show
Cyrill Ruettimann added a comment - Also applies to TestNG 5.5
Hide
Jesse Kuhnert added a comment -

I'd resolve this if I had the right perms but the new 2.4-SNAPSHOT version of surefire is compatible up to version 5.5 of TestNG.

Show
Jesse Kuhnert added a comment - I'd resolve this if I had the right perms but the new 2.4-SNAPSHOT version of surefire is compatible up to version 5.5 of TestNG.
Hide
Eric Berry added a comment -

Someone please fix this issue and release the new version!!!!!

Show
Eric Berry added a comment - Someone please fix this issue and release the new version!!!!!
Hide
Larry Hamel added a comment -

I tried 2.4-SNAPSHOT and got

[INFO] Surefire report directory: c:\cvs\ilink\faqtory\target\surefire-reports
java.lang.IllegalArgumentException: Unknown parameter type: java.util.Properties

at org.apache.maven.surefire.booter.SurefireBooter.constructParamObjects
(SurefireBooter.java:782)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
ava:836)

Can someone please make using testng 5.5 possible for mere mortals?

thanks,

larry

Show
Larry Hamel added a comment - I tried 2.4-SNAPSHOT and got [INFO] Surefire report directory: c:\cvs\ilink\faqtory\target\surefire-reports java.lang.IllegalArgumentException: Unknown parameter type: java.util.Properties at org.apache.maven.surefire.booter.SurefireBooter.constructParamObjects (SurefireBooter.java:782) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j ava:836) Can someone please make using testng 5.5 possible for mere mortals? thanks, larry
Hide
hanasaki added a comment -

Rolled back to testng 5.0 in netbeans 6.x nightly builds and this appears to be a workaround. Escalate resolution please?

Show
hanasaki added a comment - Rolled back to testng 5.0 in netbeans 6.x nightly builds and this appears to be a workaround. Escalate resolution please?
Hide
Dan Fabulich added a comment -

TestNG 5.2 works in the latest 2.4-SNAPSHOT in trunk, but you'll probably prefer to use TestNG 5.7 with the 2.4-SNAPSHOT in trunk anyway.

Show
Dan Fabulich added a comment - TestNG 5.2 works in the latest 2.4-SNAPSHOT in trunk, but you'll probably prefer to use TestNG 5.7 with the 2.4-SNAPSHOT in trunk anyway.

People

Vote (26)
Watch (22)

Dates

  • Created:
    Updated:
    Resolved: