Running unit tests with remote Ruby/RVM

Hello,

I was able to configure the Remote Ruby SDK/RVM from my Vagrant box.  That's a great feature for Rubymine.

Now, when I try to run my rspec tests, it's looking for the spec folder on my Mac and not on the Vagrant box.

How can I configure the spec test to use the rails folder from my vagrant box?


I tried putting in the remote folders in the spec configuration in  the 'Specs folder' as /home/vagrant/projects/myproject but the command line shows only my Mac folder on the command line

/usr/local/rvm/rubies/ruby-2.2.0/bin/ruby -e '$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)' /usr/local/rvm/gems/ruby-2.2.0@rails_419/bin/rspec /Users/kxkannan/projects/myproject/spec --require teamcity/spec/runner/formatter/teamcity/formatter --format Spec::Runner::Formatter::TeamcityFormatter --pattern '**/*_spec.rb' --tag ~integration_test

The highlighted directory in the above command line is supposted to be my remote directory (/home/vagrant/projects/myproject), I think.   

How can I fix this?

1 comment
Comment actions Permalink

Hi,

it looks like you have configured the sdk as plain ssh-based one. Am I right?
If so you need to specify mapping (see https://confluence.jetbrains.com/display/RUBYDEV/Configuring+Remote+Interpreters#ConfiguringRemoteInterpreters-1.ConfigureaRemoteHostAccess)
If the sdk is vagrant-based one then it looks like a bug for me :( Could you please show the sdk in sdk list and provide RubyMine's log (Help|Show Log in ...)

Regards, Oleg.

0

Please sign in to leave a comment.