You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe there is an error somewhere in https://craftcms.com/docs/4.x/testing/testing-craft/setup.html. I've made all the steps several times, and when I run codecept run unit, it thows an error: Fatal error: Uncaught Error: Class "Codeception\Module\Yii2" not found in /var/www/project/vendor/craftcms/cms/src/test/Craft.php:65.
Also, it seems that in codeception.yml under the paths block should be added the line: output: tests/_output.
What helped me to make it work: composer require --dev codeception/module-yii2
then again vendor/bin/codecept build
also, in .env-File in root: ALLOW_ADMIN_CHANGES=true
Maybe there is an error somewhere in https://craftcms.com/docs/4.x/testing/testing-craft/setup.html. I've made all the steps several times, and when I run
codecept run unit
, it thows an error:Fatal error: Uncaught Error: Class "Codeception\Module\Yii2" not found in /var/www/project/vendor/craftcms/cms/src/test/Craft.php:65
.Also, it seems that in
codeception.yml
under thepaths
block should be added the line:output: tests/_output
.Craft version: 4.3.8.2
PHP version: 8.1.14
Database driver & version: PostgreSQL 13.8
Codeception: 5.0.8
The text was updated successfully, but these errors were encountered: