2017-09-29 42 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

回答

相關問題