I am new to Codeception concept and trying to run the unit test scripts in this directory:
Install Codeception via composer:
$ composer require "codeception/codeception"
From now on Codeception (with installed PHPUnit) can be run as:
$ php vendor/bin/codecept
Next, initialize your testing environment:
$ php vendor/bin/codecept bootstrap
Now, go to the Yii2
'tests/codeception/frontend' folder and run:
$ php vendor/bin/codecept build $ php vendor/bin/codecept run
You can read more about Codeception installation steps from this link.
Also, if you want codecept command to work from the command line:
codecept bootstrap codecept run
... then you need to configure the
$PATH variable properly.