prashant-ramcharan / courgette-jvm

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

Getting "java.io.IOException: Cannot run program java : Create process error=206, The filename or extension is too long" exception #230

Closed karthees05 closed 3 years ago

karthees05 commented 3 years ago

Hi,

I am using your latest version of courgette-jvm 5.8.0 for our parallel run. And I am trying to implement open SSH logic to connect Unix boxes and run the scenarios locally from windows machine. I am able to run the scenarios without this jvm but when I use this getting the below exception and for both the cases I running Gradle command to execute the tests.

Exception which I am getting is ,

Getting "java.io.IOException: Cannot run program java : Create process error=206, The filename or extension is too long" exception

Do we have any solution for this.

Thanks, Karthee

prashant-ramcharan commented 3 years ago

Hello,

kawalbhatia commented 3 years ago

Hi Prashant, Still getting the same issue . I am using Maven to build and run the test. When i execute the runner file through testng.xml without courgette option, it works well. However with Courgette option, it is giving this issue.Please suggest some solution here.

prashant-ramcharan commented 3 years ago

Update: There is a workaround for this in Courgette version 5.9.2 that accepts a custom class path.

See example project here: https://github.com/prashant-ramcharan/courgette-jvm-classpath-example