ruby on rails - Run rspec against vagrant box -
i want run rspec tests gitlab within vim (calling: !rspec). problem is, i'm using vagrant box provided here: https://github.com/gitlabhq/gitlab-vagrant-vm
this means whole app running inside of vagrant box, , when call rspec within vim, tries run locally.
is there way can forward rspec call vagrant box, , output locally?
i've found one: https://github.com/clintoncwolfe/vagrant-rspec-ci not im looking for, since have run custom command.
maybe related to: spork, vagrant, , rspec
you can execute command on ssh, , return output:
$ ssh user@host echo "hi" hi you use run rspec:
$ ssh user@vagrant-ip "cd /path/to/project && rspec" the thing bear in mind approach shell's environment must set correctly allow access rspec command. mileage vary depending on how manage rubies.
but can set command in vim execute ssh command, , output returned, e.g.:
:command vrspec exec "system('ssh user@vagrant-ip...')"
Comments
Post a Comment