Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

Testing One File

Harry Levine edited this page Apr 29, 2018 · 4 revisions

Run One Specific Test

During development, often times you need to run just one test file. The template for this call is:

docker-compose run web bin/rails test path_to_test_file_in_test_directory

For example, to run the users_controller_test.rb you would call:

docker-compose run web bin/rails test test/controllers/api/v1/users_controller_test.rb

Run Entire Test Suite

To run the entire test suite, you will simply call:

make test

Note: Docker needs to be running in all cases.