我有一个Symfony 2.4.4站点,带有简单的Codeception (2.1.7)验收测试设置。在运行验收测试时,我得到以下错误:
[Codeception\Exception\ConfigurationException]
AcceptanceTester class doesn't exist in suite folder.
Run the 'build' command to generate ittests/acceptance目录中确实存在AcceptanceTester类。如果我运行一个构建,我会得到以下错误:
[Codeception\Exception\ConfigurationException]
Configuration file could not be found.
Run `bootstrap` to initialize Codeception.codeception.yml文件确实存在,并且包含以下内容:
actor: Tester
paths:
tests: tests
log: tests/_output
data: tests/_data
helpers: tests/_support
settings:
bootstrap: _bootstrap.php
colors: false
memory_limit: 1024M
coverage:
enabled: true
remote: true
include:
- app/*
exclude:
- app/cache/*
include:
...
modules:
config:
Db:
dsn: ''
user: ''
password: ''
dump: tests/_data/dump.sql如果我运行一个bootstrap,它会确认这一点:
Project is already initialized in '.'acceptance.suite.yml包含:
class_name: AcceptanceTester
modules:
enabled:
- AcceptanceHelper有什么建议吗?
发布于 2016-03-31 16:58:09
codecept build重新生成测试器文件。发布于 2016-06-01 18:58:46
我认为,您需要运行命令codecept bootstrap。
发布于 2017-10-10 00:25:07
我遇到了这个问题,我意识到我运行了codecept bootstrap,但vendor和tests文件夹位于错误的目录中。
我关注了this video,它帮助了我。
https://stackoverflow.com/questions/36322580
复制相似问题