Codeception.yml 配置:
paths:
tests: src/Niwa/ForecastUIBundle/Tests/codecept/test
log: app/logs/report
data: src/Niwa/ForecastUIBundle/Tests/codecept/test/_data
helpers: src/Niwa/ForecastUIBundle/Tests/codecept/test/_helpers
settings:
bootstrap: _bootstrap.php
suite_class: \PHPUnit_Framework_TestSuite
colors: true
memory_limit: 1024M
log: true
coverage:
enable: true
remote: true
include:
- src/Niwa/ForecastUIBundle
- src/Niwa/ForecastRestBundle
我接受的 acceptance.suite.yml 文件配置:
# Codeception Test Suite Configuration
# suite for acceptance tests.
# perform tests in browser using the Selenium-like tools.
# powered by Mink (http://mink.behat.org).
# (tip: that's what your customer will see).
# (tip: test your ajax and javascript by one of Mink drivers).
# RUN `build` COMMAND AFTER ADDING/REMOVING MODULES.
class_name: WebGuy
modules:
enabled:
- PhpBrowser
- WebHelper
- WebDebug
config:
PhpBrowser :
url: 'http://forecast.localhost'
capabilitites:
unexpectedAlertBehaviour: 'accept'
我正在运行的命令以获取测试覆盖率:
php ./codecept.phar run --coverage --xml --html --report
输出:
Codeception PHP Testing Framework v1.8.3
Powered by PHPUnit 3.7.28 by Sebastian Bergmann.
test the big number page (BigNumberTestCept.php)...........................Ok
display niwa forecast chart (ForecastChartCept.php)........................FAIL
check the resize algorithm (ForecastChartResizeCept.php)...................Ok
test the resize algorithm (LandingPageCept.php)............................FAIL
Code Coverage Report
2014-04-14 16:09:02
Summary:
Classes: (0/0)
Methods: (0/0)
Lines: (0/0)
它返回的是空白的index.html,没有展示任何类和方法,也没有生成任何报告。
请帮忙解决!!!