I've been trying to set up rcov for the "development" configuration of a rails project as described in the help document and knowledgebase, but rcov is not saving any data for analysis. I've added rcov to the gem file, it's installed and is showing under external libraries for the project.
What is strange is that if I copy the command line that RubyMine generates into a command window and run it from there the data generates perfectly and RubyMine is able to display the coverage properly. The command line is:
C:\Ruby192\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) C:\Ruby192\bin/rcov --save C:\Users\Jonathan\.RubyMine32\system\coverage\RailsHelloWorld@Development__RailsHelloWorld.rcov --no-html -x /rb/testing/patch/,/rb/testing/runner/ X:/RailsHelloWorld/script/rails -- server -b 127.0.0.1 -p 3000 -e development
The only thing that seems to be different between running the process in RubyMine vs the command window is that I'm able to cleanly shutdown the Rails server in the command window by pressing ctrl-c. In RubyMine I seem to have to use the stop (ctrl-f2) button which causes the process to stop with exit code 1. Is that preventing rcov from writing the coverage data?
I'm new to RubyMine so I may have missed a step somewhere, any help would be much appreciated.