2017-09-29 44 views
1

我正在使用PhpStorm和Vagrant开发Symfony项目。PhpStorm:错误正在执行Behat测试没有在路径中找到规范,但从命令行运行

我配置PhpStorm与流浪机执行贝哈特测试,但是当我尝试运行或调试他们,我得到这个错误:

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`. 

虽然如果我从流浪机器内部的命令行执行它,它工程确定:

./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 
....... 

我已经与我的流浪VM配置PHP解释器,我也觉得贝哈特配置设置OK:我看到贝哈特版本,我已经设置了贝哈特配置路径...我不明白为什么从PhpStorm执行失败。

任何想法?在此先感谢

+0

也许'symonfy'不存在,似乎有拼写问题。 – lauda

+0

@lauda对不起,这是一个拼写问题,但是写了一个问题,实际上路径还行 – petekaner

+0

像'behat.yml'和'full_rest.feature'这样的文件是一样的吗? – lauda

回答

相关问题