Class PhpStorm_Codeception_ReportPrinter codeception 2.3.9 版本不存在

Class PhpStorm_Codeception_ReportPrinter does not exist on version 2.3.9 of codeception

有一个类似的问题,但这里不适用,因为我使用的是 codeception 版本 2.3.9。

也就是说,我已经在 docker 容器上设置了远程 php 解释器和远程代码接收。当我进行 运行 验收测试时,我得到:

Testing started at 12:43 AM ...
docker://automation_environment:latest/php /opt/.phpstorm_helpers/codeception.php run --report -o "reporters: report: PhpStorm_Codeception_ReportPrinter" --no-ansi --no-interaction tests/mjp_acceptance

==== Redirecting to Composer-installed version in vendor/codeception ====
Codeception PHP Testing Framework v2.3.9
Powered by PHPUnit 6.5.13 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>]


Fatal error: Uncaught RuntimeException: Command Did Not Finish Properly in /opt/project/vendor/codeception/codeception/src/Codeception/Subscriber/ErrorHandler.php on line 101

Call Stack:
    0.0003     395640   1. {main}() /opt/.phpstorm_helpers/codeception.php:0
    0.0006     421800   2. require_once('/var/automation/vendor/codeception/codeception/autoload.php') /opt/.phpstorm_helpers/codeception.php:24
    0.5967    4744624   3. require('/opt/project/vendor/codeception/codeception/package/bin') /var/automation/vendor/codeception/codeception/autoload.php:12
    0.9052    7553016   4. Codeception\Application->run() /opt/project/vendor/codeception/codeception/package/bin:37
    0.9052    7553016   5. Codeception\Application->run() /opt/project/vendor/codeception/codeception/src/Codeception/Application.php:108

RuntimeException: Command Did Not Finish Properly in /opt/project/vendor/codeception/codeception/src/Codeception/Subscriber/ErrorHandler.php on line 101

Call Stack:
    0.0003     395640   1. {main}() /opt/.phpstorm_helpers/codeception.php:0
    0.0006     421800   2. require_once('/var/automation/vendor/codeception/codeception/autoload.php') /opt/.phpstorm_helpers/codeception.php:24
    0.5967    4744624   3. require('/opt/project/vendor/codeception/codeception/package/bin') /var/automation/vendor/codeception/codeception/autoload.php:12
    0.9052    7553016   4. Codeception\Application->run() /opt/project/vendor/codeception/codeception/package/bin:37
    0.9052    7553016   5. Codeception\Application->run() /opt/project/vendor/codeception/codeception/src/Codeception/Application.php:108
    1.9287   12880104   6. Codeception\Subscriber\ErrorHandler->shutdownHandler() /opt/project/vendor/codeception/codeception/src/Codeception/Subscriber/ErrorHandler.php:0


Process finished with exit code 255

我已经删除并重新添加了 php 风暴上的解释器。仍然没有运气

我从这条错误消息中得到了线索:

==== Redirecting to Composer-installed version in vendor/codeception ====

我从旧版本的 PhpStorm Codeception 插件中得到 here (我不记得如何从 PhpStorm 中提取它)。

看起来您已将 PhpStorm 配置为 运行 codeception.phar,但您也将 Codeception 安装为 Composer 依赖项。因此,PhpStorm 尝试 运行 codecept.phar 并跳过 codeception.php 的其余部分,包括 PhpStorm_Codeception_ReportPrinter class.

的声明

我的建议是将 Path to Codeception executable 设置为 vendor/codeception/codeception/codecept