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

JUnit47 runner failing in parallel mode

    XMLWordPrintableJSON

Details

    Description

      JUnit47 runner failing in parallel mode. Due to some reason at TestSet.java:115 it evaluates isJunit3 = true and trying to get first children of empty TestSetDescription

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project kotlinx.css: ExecutionException: java.lang.RuntimeException: There was an error in the forked process
      [ERROR] org.apache.maven.surefire.testset.TestSetFailedException: java.lang.RuntimeException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
      [ERROR] at org.apache.maven.surefire.common.junit4.JUnit4RunListener.rethrowAnyTestMechanismFailures(JUnit4RunListener.java:213)
      [ERROR] at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:109)
      [ERROR] at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeLazy(JUnitCoreWrapper.java:89)
      [ERROR] at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:58)
      [ERROR] at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:144)
      [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
      [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
      [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      [ERROR] Caused by: java.lang.RuntimeException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
      [ERROR] at org.apache.maven.surefire.junitcore.TestSet.replay(TestSet.java:100)
      [ERROR] at org.apache.maven.surefire.junitcore.ConcurrentRunListener.testSetCompleted(ConcurrentRunListener.java:82)
      [ERROR] at org.apache.maven.surefire.junitcore.JUnitCoreRunListener.testRunFinished(JUnitCoreRunListener.java:73)
      [ERROR] at org.junit.runner.notification.SynchronizedRunListener.testRunFinished(SynchronizedRunListener.java:42)
      [ERROR] at org.junit.runner.notification.RunNotifier$2.notifyListener(RunNotifier.java:103)
      [ERROR] at org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:72)
      [ERROR] at org.junit.runner.notification.RunNotifier.fireTestRunFinished(RunNotifier.java:100)
      [ERROR] at org.junit.runner.JUnitCore.run(JUnitCore.java:138)
      [ERROR] at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
      [ERROR] at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:108)
      [ERROR] ... 6 more
      [ERROR] Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
      [ERROR] at java.util.ArrayList.rangeCheck(ArrayList.java:653)
      [ERROR] at java.util.ArrayList.get(ArrayList.java:429)
      [ERROR] at org.apache.maven.surefire.junitcore.TestSet.createReportEntry(TestSet.java:115)
      [ERROR] at org.apache.maven.surefire.junitcore.TestSet.replay(TestSet.java:74)
      [ERROR] ... 15 more
      [ERROR] -> [Help 1]
      

      Attachments

        Activity

          People

            tibordigana Tibor Digana
            Sergey.Mashkov Sergey Mashkov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: