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

Testing One File

Harry Levine edited this page Jan 1, 2018 · 4 revisions

Run One Specific Test

During development, often times you need to run just one test. 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

This can be scoped further (i.e. running one test, or a block of tests). For example, to run just one test within a test file, append a : and line number of where the test block begins:

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

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.

Clone this wiki locally