The integration tests require a few things up front to run:
brew install chromedriver
Next, you'll have to deal with some first-run crap, in order to give
osascript
permissions. This is the only way I could figure out how to give
RSpec the ability to send native OS X keys. If there is a way to do this
without needing permissions, please open a PR/issue!
bundle install
bundle exec rspec spec
It will ask for permissions for System Events.app
, you'll need to give them:
Run bundle exec rspec spec
again.
It will also ask for permissions for osascript
(via iTerm), you'll need to enable iTerm under accessibility here:
You should now be able to run:
bundle exec rspec spec
You can't have another instance of Chrome running while you run the tests, or else the wrong Vim modes get entered, unfortunately. The rspec runner will kill Chrome for you. You'll can get your tabs back when you open Chrome back up.