0
我將代碼升級到2.0,然後驗證測試不再工作。升級2.0代碼/測試失敗
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.
然後我跑構建命令
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
正如你可以看到測試不工作,沒有理由並有更新之前沒有問題。
任何建議將受到歡迎。謝謝
我不知道嗎?我只是顯示我做了什麼升級代碼,也許我做了錯誤的方式...我沒有碰我的測試代碼,它的工作之前,我試圖升級 – JulienB
沒有必要做那種壞脾氣 答案...點擊-1,祝你有美好的一天...我幾周前開始編碼,Nice社區! – JulienB
那麼如果你想知道「如何正確地更新代碼隱藏」,那麼對於stackoverflow來說這也不是一個更好的問題(因爲它是寬泛的)。您需要先了解您的問題,並在來到這裏之前先嚐試自己解決問題。 – oberlies