Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error [Windows7]- Codecept not executable #26

Open
ksubudhi opened this issue Jul 31, 2014 · 3 comments
Open

Error [Windows7]- Codecept not executable #26

ksubudhi opened this issue Jul 31, 2014 · 3 comments

Comments

@ksubudhi
Copy link

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 ??

@NightZpy
Copy link

NightZpy commented Oct 6, 2014

Hey, you get some solutions for this issue? Am the same problem!
Greetz!

@jayhealey
Copy link
Owner

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.

@Kofriv
Copy link

Kofriv commented Oct 8, 2014

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
#26 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants