Codeception Api Test gives error in Yii2 -


i have below yml code in api.suite.yml

class_name: apitester modules:     enabled: [phpbrowser, rest]     depends:           rest: phpbrowser     config:         phpbrowser:             url: 'http://localhost/testapi/'         rest:             url: 'http://localhost/testapi/json/1.0/' 

it gives below error when run using ./vendor/bin/codecept run

  [codeception\exception\modulerequireexception]                 rest module requirements not met!                          module depends on codeception\lib\innerbrowser             example configuring phpbrowser backend rest module.     --                                                             modules:                                                           enabled: rest:                                                     depends: phpbrowser                                            url: http://localhost/api/                             --                                                             framework modules can used testing of api well.    

i tried many yml config combinations without luck. how fix issue?

i had same exception. after doing research, if fix issue following configuration:

  class_name: apitester modules:   enabled:     - rest:         depends: phpbrowser         url: http://127.0.0.1/api/v1/  

yaml files whitespace-sensitive. have pay attention on indentations.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -