Yii2 模块未配置! - 选项:configFile are required 错误 - codeception
Yii2 module is not configured! - Options: configFile are required error - codeception
Yii2模块未配置! - 选项:configFile are required 错误,
codeception yii2错误
如何修复错误?我有
suites:
unit:
# path: .
path: common
actor: UnitTester
modules:
enabled:
# add more modules here
- Asserts
- Yii2
settings:
shuffle: true
lint: true
bootstrap: tests/_bootstrap.php
paths:
tests: .
output: common/_output
support: common/_support
data: common
modules:
enabled:
# add more modules here
#- Asserts
- Yii2
我自己整理了一下,没有找到答案。
通用模块项目设置必须具有配置形式 - 子项目必须命名为 'config' 而不是 'enabled',以便能够在其他地方使用,例如套件 - 单元 section/file,并参考基本Yii2模板提供或生成的配置文件
modules:
config:
Yii2:
configFile: 'config/test.php'
在完整上下文中可见
suites:
unit:
# path: .
path: common
actor: UnitTester
modules:
enabled:
# add more modules here
- Asserts
- Yii2
settings:
shuffle: true
lint: true
bootstrap: tests/_bootstrap.php
paths:
tests: .
output: common/_output
support: common/_support
data: common
modules:
config:
Yii2:
configFile: 'config/test.php'
Yii2模块未配置! - 选项:configFile are required 错误, codeception yii2错误 如何修复错误?我有
suites:
unit:
# path: .
path: common
actor: UnitTester
modules:
enabled:
# add more modules here
- Asserts
- Yii2
settings:
shuffle: true
lint: true
bootstrap: tests/_bootstrap.php
paths:
tests: .
output: common/_output
support: common/_support
data: common
modules:
enabled:
# add more modules here
#- Asserts
- Yii2
我自己整理了一下,没有找到答案。 通用模块项目设置必须具有配置形式 - 子项目必须命名为 'config' 而不是 'enabled',以便能够在其他地方使用,例如套件 - 单元 section/file,并参考基本Yii2模板提供或生成的配置文件
modules:
config:
Yii2:
configFile: 'config/test.php'
在完整上下文中可见
suites:
unit:
# path: .
path: common
actor: UnitTester
modules:
enabled:
# add more modules here
- Asserts
- Yii2
settings:
shuffle: true
lint: true
bootstrap: tests/_bootstrap.php
paths:
tests: .
output: common/_output
support: common/_support
data: common
modules:
config:
Yii2:
configFile: 'config/test.php'