【问题标题】:PhpStorm Codeception run argumentsPhpStorm Codeception 运行参数
【发布时间】:2017-09-18 19:04:17
【问题描述】:

我得到了带有 Codeception 框架的 PhpStorm。当我运行验收测试时,IDE 会生成默认选项:

C:\xampp\php\php.exe C:/.../Temp/ide-codeception.php 运行 --report -o "reporters: report: PhpStorm_Codeception_ReportPrinter" --no-ansi --no-interaction -c C:...\codeception.yml 接受

我怎样才能重载这个配置(尤其是--no-ansi--no-interaction)?

我尝试过“运行/调试配置”和“测试运行器选项”,但它不起作用。

【问题讨论】:

    标签: phpstorm codeception


    【解决方案1】:

    这是一个很好的问题,但我认为不破解插件是不可能的。命令行由插件启动: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);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-07-19
      • 2017-11-29
      • 1970-01-01
      • 1970-01-01
      • 2017-04-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多