0
我正在使用codeception 2.2.5 a和Yii 1.1.4 Yii1模塊存在問題。我已經它配置爲用於功能和單元測試使用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
運行在一起的主要目標是代碼覆蓋率。