【问题标题】:How should be the content of api.suite.yml Yii2 codeception config file?api.suite.yml Yii2 codeception 配置文件的内容应该如何?
【发布时间】:2021-02-27 21:18:15
【问题描述】:

我需要使用fixtures测试我的Yii2项目的API,所以我想知道我应该如何填写文件api.suite.yml

【问题讨论】:

    标签: yii2 codeception


    【解决方案1】:

    如需了解如何在项目中生成初始 Codeception api 测试结构,请查看:https://codeception.com/for/yii

    这是我在api.suite.yml中使用的内容:

    actor: ApiTester
    modules:
        enabled:
            - \api\tests\Helper\Api
            - REST:
                url: http://localhost/index-test.php
                depends: Yii2
            - Yii2:
                part: [orm, email, fixtures]
            - Asserts
    

    【讨论】:

      猜你喜欢
      • 2017-09-06
      • 1970-01-01
      • 2017-05-26
      • 1970-01-01
      • 2021-04-17
      • 1970-01-01
      • 1970-01-01
      • 2021-01-05
      • 2021-11-24
      相关资源
      最近更新 更多