rcov not saving test data

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.

Thanks,
Jonathan.
3 comments
Comment actions Permalink

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

Jonathan,
     Do you mean that you don't see any code coverage line markers in RubyMine editor tabs and project view, and even C:\Users\Jonathan\.RubyMine32\system\coverage\RailsHelloWorld@Development__RailsHelloWorld.rcov file doesn't exist?

0
Comment actions Permalink

Yes, that's right. The only way I see those things is if I run the command line RM generates in a completely separate command window and then open the rcov coverage data suite manually within Rubymine.

0
Comment actions Permalink

Ok, I've just asked our QA to try to reproduce the problem in windows. Thanks.

0

Please sign in to leave a comment.