PHP arguments to run

I got a PhpStorm with a Codeception framework. When I run Acceptance tests, the IDE has default options:

C: \ xampp \ php \ php.exe C: /.../ Temp / ide-codeception.php run --report -o "reporters: report: PhpStorm_Codeception_ReportPrinter" --no-ansi --no-interaction -c C : ... \ codeception.yml acceptance

How can I overload this configuration (especially --no-ansiand --no-interaction)?

I tried "Run / Debug Configurations" and "Test Run Settings", but it does not work.

+4
source share
1 answer

, , . : phpstorm/plugins/codeception/lib/codeception.jar

https://plugins.jetbrains.com/plugin/9515-codeception-framework

java CodeceptionRunConfigurationHandler.class, prepareCommand():

    command.setScript(scriptFile, false);
    command.addArgument("run");

    if ((StringUtil.isNotEmpty(version)) && (PhpTestFrameworkVersionDetector.versionCompare(version, "2.2.6") >= 0))
    {
      command.addArgument("--report");
      command.addArgument("-o");
      command.addArgument("reporters: report: PhpStorm_Codeception_ReportPrinter");
    }

    command.addArgument("--no-ansi");
    command.addArgument("--no-interaction");
    command.addEnv("IDE_CODECEPTION_EXE", exe);
0

Source: https://habr.com/ru/post/1675370/


All Articles