K
K
Kolya Vantukh2016-10-20 16:29:47
Yii
Kolya Vantukh, 2016-10-20 16:29:47

How to call codeception on yii2?

In general, I installed codeception with the command

composer global require "codeception/codeception=2.1.*"

Everything was fine, but when you call codeception buid writes '
codecept' is not recognized as an internal or external command, operable program or batch file.

Look, during the first global installation, as it was written in the documentation, I added the path to the directory to the PATH environment variable. Here is the meaning of it
c:/users/kolya/appdata/roaming/composer/vendor/bin;C:\Progra‌​m Files (x86)\Skype\Phone\

. and, as I understand it, after that the codecept command should become available in the console, but "codecept' is not recognized as an internal or external command, operable program or batch file"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vit, 2016-10-20
@fornit1917

First, check that in c:/users/kolya/appdata/roaming/composer/vendor/bin there really is a codecept executable file (probably codecept.bat, if Windows).
Second, close the console again and try again.
Thirdly, try adding the path with backslashes, I'm not sure that you can use direct slashes in Windows.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question