Skip to content

Running Tests

Gustavo Cunha edited this page Feb 15, 2020 · 7 revisions

CodeClimate Maintainability CodeClimate Test Coverage

This application is covered by tests on backend, frontend and end-to-end (browser) tests. All tests are located in spec folder.

Backend

Rspec

Backend tests are written in Ruby using RSpec. To run the tests, run rspec on your terminal.

Frontend

Jest

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

Cypress

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.

Clone this wiki locally