0

I´m trying to use Codeception for WordPress.

Environment

  • OS : Windows 10
  • IDE : PhpStorm
  • Terminal (in PhpStorm) : Babun

I managed with composer to build the project wp-browser but when I try to run a command with the key word codecept, I got this error :

bash: codecept: command not found

I checked my PhpStorm configuration in Settings > Languages & Frameworks > PHP > Test Frameworks and I can see :

Path to codeception executable : E:\path\my-test-project\vendor\codeception\codeception

I had in PATH for all users E:\path\my-test-project\vendor\codeception\codeception after following this question, without success.

When I test the command codecept in Babun outside the PHPStorm Terminal, that works, so it seems to be a PhpStorm problem.

What could be the thing I forgot ?

J.BizMai
  • 2,621
  • 3
  • 25
  • 49
  • Correct path is `E:\path\my-test-project\vendor\codeception\codeception\` – Naktibalda Jul 01 '18 at 20:58
  • Yes, it war an error inside the question. It´s what it was generated by composer so the problem is not that. I will modify my question. – J.BizMai Jul 02 '18 at 16:55

1 Answers1

0

I tried again and now it works. I´m not sure the reason why but it could be because on PHPStorm I clicked (to resolve an other problem ) on

File > Invalidated Caches / Restart....

J.BizMai
  • 2,621
  • 3
  • 25
  • 49