繁体   English   中英

Yii2 模块未配置: - 选项:configFile are required 错误 - 密码接收

[英]Yii2 module is not configured! - Options: configFile are required error - codeception

Yii2 模块未配置: - Options, 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

我自己排序,因为没有找到答案。 通用模块项目设置必须有一种配置形式 - 子项目必须命名为“配置”而不是“启用”,以便能够在其他地方使用,例如套件 - 单元部分/文件,并参考配置文件由基本 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'

在此处输入图像描述

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM