0

I have a .bat file which runs two rspec commands

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

However, the second command does not execute. What am i doing wrong?

npocmaka
  • 51,748
  • 17
  • 123
  • 166
  • What error messages are you seeing for the second command? – Rich Benner Apr 27 '16 at 12:32
  • Nothing..The first command runs all the rspec tests (mentioned in the suite).After the execution is over, the second command is just skipped without throwing any errors. I am using java code to create and run the batch file..I am not sure that this matters here,though..appreciate your help..:) – Bhaskar Phukan Apr 27 '16 at 12:35
  • 2
    Is rspec an exe file or batch file? Try to add CALL before your commands – jeb Apr 27 '16 at 12:36

1 Answers1

1

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

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
Community
  • 1
  • 1
npocmaka
  • 51,748
  • 17
  • 123
  • 166