Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.18 KB

Integration_Tests.md

File metadata and controls

37 lines (25 loc) · 1.18 KB

Setting up to run integration tests

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:

image

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:

image

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.