使用Yii 1.x和CodeCeption进行测试

时间:2017-01-13 19:26:15

标签: php yii codeception

我想用CodeCeption配置Yii 1,我按照说明操作但是在尝试功能测试时遇到错误

$ codecept run tests / functional / IndexCept.php -vvv

  [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'

提前谢谢

0 个答案:

没有答案