При запуске функциональных тестов выдает:
Unable to find 'app\controllers\SiteController' in file: /app/frontend/controllers/SiteController.php. Namespace missing?
/app/vendor/yiisoft/yii2/BaseYii.php:296
/app/vendor/yiisoft/yii2/base/Module.php:637
/app/vendor/yiisoft/yii2/base/Module.php:596
/app/vendor/yiisoft/yii2/base/Module.php:522
/app/vendor/yiisoft/yii2/web/Application.php:103
/app/vendor/symfony/browser-kit/Client.php:405
/app/frontend/tests/_support/_generated/FunctionalTesterActions.php:927
/app/frontend/tests/functional/HomeCest.php:12
/home/vagrant/.phpstorm_helpers/codeception.php:40
В чем может быть проблема?
codeception.yml
namespace: frontend\tests
actor: Tester
paths:
tests: tests
log: tests/_output
data: tests/_data
helpers: tests/_support
settings:
bootstrap: _bootstrap.php
colors: true
memory_limit: 1024M
modules:
config:
Yii2:
configи File: 'config/test-local.php'
function.suite.yml:
class_name: FunctionalTester
modules:
enabled:
- Filesystem
- Yii2
Я знаю, что этот вопрос нужно кидать в тему с тестированием. Но там вообще нет активности
Непонятная ошибка с тестами
Re: Непонятная ошибка с тестами
Решил эту проблему вставив в конфиг:
'controllerNamespace' => 'frontend\controllers',
'controllerNamespace' => 'frontend\controllers',
Re: Непонятная ошибка с тестами
Но теперь другая проблема:
The file or directory to be published does not exist: /app/frontend/vendor/bower-asset/jquery/dist
The file or directory to be published does not exist: /app/frontend/vendor/bower-asset/jquery/dist
Re: Непонятная ошибка с тестами
Решил данную проблему указав в конфиге vendorPath