While waiting for the devise and angular integration to finish I started to work on adding testing to the site. My first stop was to set up rspec tests for json. This ends up being pretty easy since we only have indexes right now on all of our models and with the parse Json method we can pretty easily use FactoryGirl and Faker to create some fake information and test for it. These tests ended up not taking too long and while not comprehensive they will let us test to make sure that the server is always serving up Json. The next step proved to be my undoing. After going through a couple of tutorials I decided to add protractor to the angular side for end to end testing. After a while of setting up the config file and a spec that checked for the title of the page I tried to start the webdriver. It failed. I sudo removed all the files for chromedriver and reinstalled them which seemed to fix the problem and the host server now runs. Immediately after I tried to run my protractor test. I continually got a
“The driver executable does not exist: /usr/local/lib/node_modules/protractor/selenium/chromedriver”
I uninstalled and reinstalled both selenium and the chromedriver from different sources following the advice from http://stackoverflow.com/questions/23240397/protractor-does-not-find-chromedriver-the-driver-executable-does-not-exist but I still couldn’t get it to work. It’s now the end of the day and it still doesn’t work. I’m at a loss.
If anyone has had this problem and happens upon this post please let me know what you did to fix it. Thanks!
Until then I’m going to leave the protractor branch alone and focus on editing pages as a logged in admin and formatting the site to look prettier.