Php 使用yii1.x和CodeCeption进行测试
我想用CodeCeption配置yii1,我按照说明进行了操作,但在尝试功能测试时出错 $codecept运行测试/functional/IndexCept.php-vvvPhp 使用yii1.x和CodeCeption进行测试,php,yii,codeception,Php,Yii,Codeception,我想用CodeCeption配置yii1,我按照说明进行了操作,但在尝试功能测试时出错 $codecept运行测试/functional/IndexCept.php-vvv [Codeception\Exception\ConfigurationException] Module \Helper\Functional could not be found and loaded 这是我的CodeCeption.yml actor: Dev paths: te
[Codeception\Exception\ConfigurationException]
Module \Helper\Functional could not be found and loaded
这是我的CodeCeption.yml
actor: Dev
paths:
tests: tests
log: tests/_log
data: tests/_data
helpers: tests/_helpers
settings:
bootstrap: _bootstrap.php
colors: true
memory_limit: 1024M
log: true
debug: true
modules:
enabled: [PhpBrowser, WebHelper, TestHelper, Yii1]
config:
PhpBrowser:
url: http://yii1-test.com/
Yii1:
appPath: '/web/mercadojobs.com/test.php'
url: http://yii1-test.com/test.php
我的功能套件
class_name: FunctionalTester
modules:
enabled:
- \Helper\Functional
- Yii1:
appPath: '/web/mercadojobs.com/test/index.php'
url: 'http://yii1-test.com/index.php'
提前感谢您您使用的Codeception版本是什么?您在配置中混合了两种助手类命名方案-后缀WebHelper(在Codeception 2.0中使用)和命名空间\helper\Functional(当前)。如果您正在使用旧的测试套件并阅读当前文档,请将\Helper\Functional更改为FunctionalHelper。您好,感谢您的回复,我有2.2.7版本。