Skip to content

Frontend Automated Testing

Julia Nguyen edited this page Jul 22, 2018 · 6 revisions

Jasmine for Rails JavaScript

Make sure PhantomJS is installed locally, either through their website or by running brew install phantomjs.

GUI Version

In a new terminal window, run rake jasmine.

To view the test results, go to http://localhost:8888.

Command Line Version

rake jasmine:ci

Jasmine for React JavaScript

The first thing to do is cd client/

Run All Tests Once

yarn test

Run All Tests Indefinitely

yarn test:watch
Clone this wiki locally