Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-877

Surefire doesn't support "mixed" TestNG 6.5.x config parameter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.12
    • 2.12.1
    • TestNG support
    • None

    Description

      Specifying:

      <property>
      <name>mixed</name>
      <value>true</value>
      </property>

      causes

      org.apache.maven.surefire.util.SurefireReflectionException: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: null
      java.lang.reflect.InvocationTargetException
      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:597)
      at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
      at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
      at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
      at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
      at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
      Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
      at org.testng.TestNG.configure(TestNG.java:1522)
      at org.apache.maven.surefire.testng.conf.TestNGMapConfigurator.configure(TestNGMapConfigurator.java:95)
      at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:73)
      at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:161)
      at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:101)
      at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:115)
      ... 9 more

      Attachments

        Activity

          People

            krosenvold Kristian Rosenvold
            orekutin Oleg Rekutin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: