我试图在PHPSTORM内运行编码功能测试,并继续收到一个错误的错误,说该类别丢失了类。我已经搜寻了互联网,除了一个帖子https://intellij-support.jetbrains.com/hc/hc/en-us/community/community/posts/115000646104-running-codeception-test-test-runner-causes,我没有发现此问题可用于此问题。-excpetion?sort_by = create_at。其他帖子讨论了如何设置论点。
我既有CodeCeption 2.4.1的PHAR,又有一个作曲家安装。它使用PHP版本7.1执行。
搜索vendor
文件夹返回没有这样的类,这使我认为应该从phpstorm中传递或包含它。不确定,抓住稻草。
如果有人接触到这一点,并且可以帮助一些指导,那么将不胜感激。我可以运行它们一个Docker/Vagrant配置,或者从CLI中,它无法与phpstorm集成。
C:phpphp-7.1.4-Win32-VC14-x64php.exe -d-dxdebug.remote_mode=jit C:/Users/Curtis/AppData/Local/Temp/ide-codeception.php run --report -o "reporters: report: PhpStorm_Codeception_ReportPrinter" --no-ansi --no-interaction functional
==== Redirecting to Composer-installed version in vendor/codeception ====
Codeception PHP Testing Framework v2.4.1
Powered by PHPUnit 5.7.27 by Sebastian Bergmann and contributors.
In Runner.php line 174:
Class PhpStorm_Codeception_ReportPrinter does not exist
run [-o|--override OVERRIDE] [-e|--ext EXT] [--report] [--html [HTML]] [--xml [XML]] [--tap [TAP]] [--json [JSON]] [--colors] [--no-colors] [--silent] [--steps] [-d|--debug] [--coverage [COVERAGE]] [--coverage-html [COVERAGE-HTML]] [--coverage-xml [COVERAGE-XML]] [--coverage-text [COVERAGE-TEXT]] [--coverage-crap4j [COVERAGE-CRAP4J]] [--coverage-phpunit [COVERAGE-PHPUNIT]] [--no-exit] [-g|--group GROUP] [-s|--skip SKIP] [-x|--skip-group SKIP-GROUP] [--env ENV] [-f|--fail-fast] [--no-rebuild] [--] [<suite>] [<test>]
PHP Fatal error: Uncaught RuntimeException: Command Did Not Finish Properly in C:UsersCurtisProjectstripadvisor-integrationvendorcodeceptioncodeceptionsrcCodeceptionSubscriberErrorHandler.php:101
Stack trace:
#0 [internal function]: CodeceptionSubscriberErrorHandler->shutdownHandler()
#1 {main}
thrown in C:UsersCurtisProjectstripadvisor-integrationvendorcodeceptioncodeceptionsrcCodeceptionSubscriberErrorHandler.php on line 101
PHP Stack trace:
PHP 1. {main}() C:UsersCurtisAppDataLocalTempide-codeception.php:0
PHP 2. require_once() C:UsersCurtisAppDataLocalTempide-codeception.php:21
PHP 3. require() phar://C:/Users/Curtis/Projects/tripadvisor-integration/codecept.phar/autoload.php:12
PHP 4. CodeceptionApplication->run() C:UsersCurtisProjectstripadvisor-integrationvendorcodeceptioncodeceptionpackagebin:37
PHP 5. CodeceptionApplication->run() C:UsersCurtisProjectstripadvisor-integrationvendorcodeceptioncodeceptionsrcCodeceptionApplication.php:108
Fatal error: Uncaught RuntimeException: Command Did Not Finish Properly in C:UsersCurtisProjectstripadvisor-integrationvendorcodeceptioncodeceptionsrcCodeceptionSubscriberErrorHandler.php on line 101
Call Stack:
0.2024 403184 1. {main}() C:UsersCurtisAppDataLocalTempide-codeception.php:0
0.2208 1243848 2. require_once('phar://C:/Users/Curtis/Projects/tripadvisor-integration/codecept.phar/autoload.php') C:UsersCurtisAppDataLocalTempide-codeception.php:21
0.2862 5654840 3. require('C:UsersCurtisProjectstripadvisor-integrationvendorcodeceptioncodeceptionpackagebin') phar://C:/Users/Curtis/Projects/tripadvisor-integration/codecept.phar/autoload.php:12
0.3338 8056520 4. CodeceptionApplication->run() C:UsersCurtisProjectstripadvisor-integrationvendorcodeceptioncodeceptionpackagebin:37
0.3338 8056520 5. CodeceptionApplication->run() C:UsersCurtisProjectstripadvisor-integrationvendorcodeceptioncodeceptionsrcCodeceptionApplication.php:108
RuntimeException: Command Did Not Finish Properly in C:UsersCurtisProjectstripadvisor-integrationvendorcodeceptioncodeceptionsrcCodeceptionSubscriberErrorHandler.php on line 101
Call Stack:
0.2024 403184 1. {main}() C:UsersCurtisAppDataLocalTempide-codeception.php:0
0.2208 1243848 2. require_once('phar://C:/Users/Curtis/Projects/tripadvisor-integration/codecept.phar/autoload.php') C:UsersCurtisAppDataLocalTempide-codeception.php:21
0.2862 5654840 3. require('C:UsersCurtisProjectstripadvisor-integrationvendorcodeceptioncodeceptionpackagebin') phar://C:/Users/Curtis/Projects/tripadvisor-integration/codecept.phar/autoload.php:12
0.3338 8056520 4. CodeceptionApplication->run() C:UsersCurtisProjectstripadvisor-integrationvendorcodeceptioncodeceptionpackagebin:37
0.3338 8056520 5. CodeceptionApplication->run() C:UsersCurtisProjectstripadvisor-integrationvendorcodeceptioncodeceptionsrcCodeceptionApplication.php:108
0.6265 17565136 6. CodeceptionSubscriberErrorHandler->shutdownHandler() C:UsersCurtisProjectstripadvisor-integrationvendorcodeceptioncodeceptionsrcCodeceptionSubscriberErrorHandler.php:0
Process finished with exit code -1
在我的情况下,我在作曲家全球和项目依赖性中都安装了编码。
我必须删除composer global remove codeception/codeception
并转到phpstorm->设置 ->语言&amp;框架 -> php->测试框架,然后将我的编码可执行器更改为 ~/myprojectpath/vendor/codeception/codeception/codecept