【发布时间】:2017-02-28 08:35:30
【问题描述】:
我正在使用 codeception 2.2.5 和 Yii 1.1.4 Yii1 模块有问题。我已经为功能和单元测试配置了它
这里是functional.suite.yml
class_name: FunctionalTester
modules:
enabled:
- Yii1:
appPath: 'www/test.php'
url: 'http://localhost/test.php'
part: init
- PhpBrowser:
url: 'http://localhost/index-test.php'
- \Helper\Functional
coverage:
enabled: true
remote: false
这是unit.suite.yml
class_name: UnitTester
modules:
enabled:
- Asserts
- Yii1:
appPath: 'www/test.php'
url: 'http://localhost/test.php'
- \Helper\Unit
当我单独运行测试时,一切正常。例如
php codecept.phar run functional --xml --html
php codecept.phar run unit --xml --html
当我一起奔跑时
php codecept.phar run --xml --html
它运行功能没有与 Yii1 模块相关的问题。它带来的单位是
[Codeception\Exception\ModuleConfigException]
Yii1 module is not configured!
Couldn't load application config file www/test.php
Please provide application bootstrap file configured for testing
一起运行的主要目标是代码覆盖率。
【问题讨论】:
标签: php unit-testing yii functional-testing codeception