PhpStorm:执行 Behat 测试时出错在路径中找不到规范但可以从命令行运行

PhpStorm: error executing Behat tests No specifications found at path(s) but works from command line

我正在使用 PhpStorm 和 Vagrant 开发一个 Symfony 项目。

我将 PhpStorm 配置为使用 Vagrant 机器执行 Behat 测试,但是当我尝试 运行 或调试它们时,我收到了这个错误:

vagrant:///Users/jose/Documents/WWW/symfony_project/usr/bin/php /home/vagrant/.phpstorm_helpers/behat.php --format PhpStormBehatFormatter --config /var/www/symfony/behat.yml /var/www/symfony/features/api/brand/full_rest.feature:13
Testing started at 10:48 ...

0 scenario0 step0m0.05s (14.76Mb)


  [Behat\Testwork\Tester\Exception\WrongPathsException]                                                                                                                      
  No specifications found at path(s) `/var/www/symfony/features/api/brand/full_rest.feature:13`. This might be because of incorrect paths configuration in your `suites`.  

虽然如果我从 Vagrant 机器内的命令行执行它,它工作正常:

./vendor/bin/behat --config /var/www/symfony/behat.yml /var/www/symfony/features/api/brand/full_rest.feature:13
@brands @api
Feature: API to manage the brands
  As a frontend app
.......

我已经用我的 Vagrant VM 配置了 PHP 解释器,我也认为 Behat 配置设置正常:我看到了 Behat 版本,我已经设置了 behat 配置路径...我不知道'理解为什么从 PhpStorm 执行失败。

有什么想法吗?提前致谢

这是一个错误 3.4.0 breaks the ability to run individual tests

尝试切换回 "behat/behat":“3.3.1”。