【发布时间】:2014-05-27 22:21:37
【问题描述】:
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 都设置为空白。不生成任何报告。
请帮忙!!!
【问题讨论】:
-
任何密码专家?请
标签: symfony phpunit code-coverage codeception