升级2.0代码/测试失败

时间:2014-06-06 13:50:22

标签: webdriver upgrade codeception

我将codeception升级到2.0,然后cept测试不再有效。

 C:\Users\Project>php codecept.phar self-update
Codeception version 2.0.0

 Checking for a new version...

You are already using the latest version.

然后我运行build命令

 C:\Users\Project>php codecept.phar build
Building Actor classes for suites: acceptance, functional, unit
WebGuy includes modules: WebDriver, WebHelper
WebGuy.php generated successfully. 74 methods added
TestGuy includes modules: Filesystem, TestHelper
TestGuy.php generated successfully. 13 methods added
CodeGuy includes modules: CodeHelper
CodeGuy.php generated successfully. 0 methods added

并运行测试

C:\Users\Project>php codecept.phar run acceptance TestCept.php
Codeception PHP Testing Framework v2.0.0
Powered by PHPUnit 4.1.1 by Sebastian Bergmann.

←[1mAcceptance Tests (1) ←[21m----------------------------------------------------------------     ----------------------------------------------------------------------------------------------------------
--------------------
←[37;41m FAIL ←[39;49m

 ------------------------------------------------------------------------------------------------------------    --------------------------------------------------------------------------------------------
-----------


Time: 9.14 seconds, Memory: 6.50Mb

There was 1 failure:

---------
1) Failed to test in ←[1mTestCept.php←[21m (C:\Users\Projects\tes
ts\acceptance\TestCept.php)
←[37;41m                                     ←[0m
←[37;41mFAILURES!                            ←[0m
←[37;41mTests: 1, Assertions: 0, Failures: 1.←[0m

正如您所看到的,测试不起作用,没有任何理由,并且在更新之前没有任何问题。

欢迎任何建议。谢谢

1 个答案:

答案 0 :(得分:0)

是php 5.4的一个错误,现在已经解决了

https://github.com/Codeception/Codeception/issues/1069