courgette-jvm: Does not run on Windows machine.
When running on a windows machine this error is produced.
java.io.IOException: Cannot run program "java": CreateProcess error=206, The filename or extension is too long
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at courgette.runtime.CourgetteFeatureRunner.run(CourgetteFeatureRunner.java:27)
at courgette.runtime.CourgetteRunner.runFeature(CourgetteRunner.java:143)
at courgette.runtime.CourgetteRunner.lambda$run$1(CourgetteRunner.java:47)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: CreateProcess error=206, The filename or extension is too long
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 7 more
Here’s the runner suite.
@RunWith(Courgette.class)
@CourgetteOptions(
threads = 10,
runLevel = CourgetteRunLevel.FEATURE,
rerunFailedScenarios = true,
showTestOutput = true,
reportTargetDir = "build",
cucumberOptions = @CucumberOptions(
glue = "com.sap.automation",
features = "classpath:features",
plugin = {
"pretty",
"html:target/cucumber-html-report",
"json:target/cucumber-reports/Cucumber.json",
"junit:target/cucumber-reports/Cucumber.xml"},
monochrome = true
))
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 19 (10 by maintainers)
Resolved it by mapping a drive (say M:) to point to maven .m2 repository and specifying <localRepository>M:</localRepository> in settings.xml
If you provide an example project which can reproduce this issue on a Mac as well, I can take a look but it sounds like you facing other non Courgette related issues.
I’ll close this issue but feel free to re-open it if you find that your errors are related to Courgette.