Does not run on Windows machine.
See original GitHub issueWhen 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
))
Issue Analytics
- State:
- Created 5 years ago
- Comments:19 (10 by maintainers)
Top Results From Across the Web
How to Fix the "This App Can't Run on Your PC" Error in ...
Right-click the app's executable file and select Properties. Open the Compatibility tab, check Run this program in compatibility mode for, and ...
Read more >PC Won't Turn on? Why and How to Fix It in 10 Ways
Try a different power source. If you try to turn on your computer and absolutely nothing happens, there are generally only two possibilities....
Read more >How to perform a clean boot in Windows - Microsoft Support
Follow troubleshooting steps to install, uninstall, or run your application. Your computer might temporarily lose some functionality while in a clean boot ...
Read more >Top 10 Solutions to Fix This App Can't Run on Your PC in Win ...
Safe Fix Cannot Run App in Windows 10 · Solution 1: Download and Install the Right Version of Programs · Solution 2: Update...
Read more >Troubleshooting - My Computer Won't Boot Windows - Intel
Troubleshooting - Why Won't My Computer Boot to Windows · 1. Find the battery. Locate the CMOS on your motherboard (it's a silver,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.