prashant-ramcharan / courgette-jvm

Multiprocess | Parallel Cucumber-JVM | Parallelize your Java Cucumber tests on a feature level or on a scenario level.
MIT License
133 stars 39 forks source link

Unable to run scenarios after upgrading to java 9 #86

Closed gkulikov closed 5 years ago

gkulikov commented 5 years ago

Trying to avoid classpath exceeding 32k symbols error I decided to update jdk to 9.0.4 When I execute following task:

tasks.withType(Test) { systemProperties = System.getProperties() systemProperties.remove("java.endorsed.dirs") }

task runScenariosInParallel(type: Test) { useTestNG()

include '**/suite/TestSuite.class' outputs.upToDateWhen { false } }

get following output:

Task :runScenariosInParallel Error occurred during initialization of boot layer java.nio.file.InvalidPathException: Illegal char <:> at index 3: jrt:/modules Error occurred during initialization of boot layer java.nio.file.InvalidPathException: Illegal char <:> at index 3: jrt:/modules Gradle suite > Gradle test > suite.TestSuite.parallelRun FAILED courgette.runtime.CourgetteTestFailureException

There were failing tests. Refer to the Courgette html report for more details. courgette.runtime.CourgetteTestFailureException: There were failing tests. Refer to the Courgette html >report for more details.

1 test completed, 1 failed Task :runScenariosInParallel FAILED`

Stacktrace: link

prashant-ramcharan commented 5 years ago

I think I may know what's causing this issue.... will provide a fix.

prashant-ramcharan commented 5 years ago

Can you retry with this version?

repositories {
    jcenter()
}

testCompile 'io.github.prashant-ramcharan:courgette-jvm:2.4.5-snapshot'
prashant-ramcharan commented 5 years ago

Please try using Courgette version 3.0.0 which was just released.

gkulikov commented 5 years ago

Hi, @prashant-ramcharan ,

thanks for your help. Issue for java 9 is resolved (tried with 3.0.0).

I must say that I had no success with java 10 and 11, but that's a different story.

prashant-ramcharan commented 5 years ago

I tested it with Java 11 and it works fine.

Will close this issue now.