0
我有以下YML代碼api.suite.ymlCodeception阿比測試給出了錯誤的Yii2
class_name: ApiTester
modules:
enabled: [PhpBrowser, REST]
depends:
REST: PhpBrowser
config:
PhpBrowser:
url: 'http://localhost/testapi/'
REST:
url: 'http://localhost/testapi/json/1.0/'
它給下面的錯誤,當我運行使用./vendor/bin/codecept運行
[Codeception\Exception\ModuleRequireException]
REST module requirements are not met!
This module depends on Codeception\Lib\InnerBrowser
Example configuring PhpBrowser as backend for REST module.
--
modules:
enabled: REST:
depends: PhpBrowser
url: http://localhost/api/
--
Framework modules can be used for testing of API as well.
我嘗試了許多YML配置組合,沒有任何運氣。如何解決這個問題?
你的配置看起來不錯。你有沒有試過運行'codecept build'? –
是的..我已經試過了。 –