-
Notifications
You must be signed in to change notification settings - Fork 2
Running Tests
Gustavo Cunha edited this page Feb 15, 2020
·
7 revisions
This application is covered by tests on backend, frontend and end-to-end (browser) tests. All tests are located in spec folder.
Backend tests are written in Ruby using RSpec. To run the tests, run rspec on your terminal.
Frontend tests are written in Javascript using Jest. To run the tests, run yarn test and test suite will be running in watch mode. To run the test suite without test mode, you can run yarn test:once.
End-to-end tests are written in Javascript using Cypress. To run the tests, run yarn cypress and cypress dashboard will open. To run the test suite without cypress dashboard, run yarn cypress:ci. Currently, Cypress only support tests on Chrome, so it is a dependency if you want to run end-to-end tests.