【问题标题】:How to set up test configuration in PhpStorm to use different interpreters如何在 PhpStorm 中设置测试配置以使用不同的解释器
【发布时间】:2018-11-20 02:32:58
【问题描述】:

我正在使用PhpStorm 2018.1.5,我想使用 2 个不同的解释器设置测试配置。

原因是我需要一个启用xdebug 的配置(运行代码覆盖率报告)和另一个没有xdebug 的配置来运行没有覆盖率的普通测试。

我当前的配置如下:

使用这样定义的解释器:

还有我的调试配置:

似乎无法选择我想使用哪个解释器进行测试配置。

是我遗漏了什么还是目前不支持?

【问题讨论】:

    标签: phpunit phpstorm


    【解决方案1】:

    确实没有办法为运行/调试配置选择本地解释器 - 请投票给https://youtrack.jetbrains.com/issue/WI-35548

    就目前而言,有一个选项可以按需启用 Xdebug - 这看起来是一个完美的解决方案。详情请见https://www.jetbrains.com/help/phpstorm/configuring-xdebug.html#on_demand_mode

    【讨论】:

      猜你喜欢
      • 2021-06-16
      • 2015-01-03
      • 1970-01-01
      • 1970-01-01
      • 2018-06-04
      • 2010-10-12
      • 2016-09-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多