Webception
Webception copied to clipboard
Error [Windows7]- Codecept not executable
Hi, I was installing Webception, but i saw it throws me error saying ,
Codeception isn't executable. Have you set executable rights to the following (try chmod o+x). D:\CodeCeptionDemo\test\webception\App\Config/../../vendor/bin/codecept
I gave full security permission to thsi file, but still it throws me error.
Can someone suggest me something ??
Hey, you get some solutions for this issue? Am the same problem! Greetz!
Sorry, I don't have a Windows machine available for me to test on.
If you do get it working, please let me know. Even better, if you can make a pull request.
Hi, I'm using Windows & PHP5.5 Currently, is_executable can't check for .BAT file is executable on Windows environment. The workaround is you can comment out the following statement: /* elseif ( ! is_executable($file)) { $response['error'] = 'Codeception isn't executable. Have you set executable rights to the following (try chmod o+x).'; } */
But even you passed the validation, you still couldn't run the test although you are expecting to test with phpbrowser. I have no idea why proc_open can't execute 'php' command while I can execute it manually in command line on Windows. So, to make it work, you should point a absolute path to call php in .BAT file. ie. Here is my new .BAT file @ECHO OFF SET BIN_TARGET=%~dp0/../codeception/codeception/codecept "D:\Xampp\php\php.exe" "%BIN_TARGET%" %*
I tried & it work on my machine.
Good luck,
Khoa Nguyen
On Tue, Oct 7, 2014 at 6:07 AM, James Healey [email protected] wrote:
Sorry, I don't have a Windows machine available for me to test on.
If you do get it working, please let me know. Even better, if you can make a pull request.
Reply to this email directly or view it on GitHub https://github.com/jayhealey/Webception/issues/26#issuecomment-58114148.