2016-04-27 20 views
0

は、私は2つのRSpecのコマンドただし、2番目のコマンドが実行されない 2番目のコマンドは、

rspec --pattern F:\giza\coreui\runtime_regression\featuresets\Grid\Grid\Actions\spec\*_spec.rb --format html > F:\output_chrome.html 
rspec --pattern F:\giza\coreui\runtime_regression\featuresets\Grid\Grid\Actions\spec\*_spec.rb --format html > F:\output_firefox.html 

を実行する.batファイルを持って実行されません。 何が間違っていますか?

+0

あなたが2番目のコマンドのためにどのようなエラーメッセージを見ていますか? –

+0

Nothing ..最初のコマンドは、すべてのrspecテスト(スイートに記載されています)を実行します。実行が終了すると、2番目のコマンドはエラーをスローせずにスキップされます。私は、Javaコードを使用して、バッチファイルを作成して実行しています。この問題はここでは分かりませんが、あなたの助けを.. .. –

+2

rspecはexeファイルですか、バッチファイルですか?あなたのコマンドの前にCALLを追加してみてください – jeb

答えて

1

Probably rspec is a batch file and that's why only one is executed .Tryと:

call rspec --pattern F:\giza\coreui\runtime_regression\featuresets\Grid\Grid\Actions\spec\*_spec.rb --format html > F:\output_chrome.html 
call rspec --pattern F:\giza\coreui\runtime_regression\featuresets\Grid\Grid\Actions\spec\*_spec.rb --format html > F:\output_firefox.html 
+0

それは、親愛なる/マダム、天才のストロークだった.. :)魅力のように働いた –

関連する問題