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

NPE when all tests are done with failsafe (parallel=classes) and cucumber-jvm

    XMLWordPrintableJSON

Details

    Description

      I've made a concurrent setup to run my cucumbers/selenium tests with failsafe with the option parallel set to classes. When all my tests are done and passed (no failure, no error), I get the following stacktrace :

      org.apache.maven.surefire.testset.TestSetFailedException: java.lang.NullPointerException; nested exception is java.lang.NullPointerException: null
      java.lang.NullPointerException
      at org.apache.maven.surefire.junitcore.ConcurrentRunListener.testSucceeded(ConcurrentRunListener.java:138)
      at org.apache.maven.surefire.common.junit4.JUnit4RunListener.testFinished(JUnit4RunListener.java:145)
      at org.junit.runner.notification.RunNotifier$7.notifyListener(RunNotifier.java:191)
      at org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:61)
      at org.junit.runner.notification.RunNotifier.fireTestFinished(RunNotifier.java:188)
      at org.junit.internal.runners.model.EachTestNotifier.fireTestFinished(EachTestNotifier.java:39)
      at cucumber.runtime.junit.JUnitReporter.finishExecutionUnit(JUnitReporter.java:55)
      at cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:84)
      at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)
      at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70)
      at cucumber.api.junit.Cucumber.runChild(Cucumber.java:77)
      at cucumber.api.junit.Cucumber.runChild(Cucumber.java:37)
      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      at cucumber.api.junit.Cucumber.run(Cucumber.java:82)

      which makes my maven build fail.

      Attachments

        Activity

          People

            agudian Andreas Gudian
            meriouma Maxime Mériouma-Caron
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: