我将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
正如您所看到的,测试不起作用,没有任何理由,并且在更新之前没有任何问题。
欢迎任何建议。谢谢