From 361a969c423c46576e9c458ddaad1ab9f2555551 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Tue, 2 Feb 2021 07:24:36 +1100 Subject: [PATCH] docs: update developer setup [ci-skip] --- DEVELOPER_SETUP.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/DEVELOPER_SETUP.md b/DEVELOPER_SETUP.md index f782bc7b1..ed622d558 100644 --- a/DEVELOPER_SETUP.md +++ b/DEVELOPER_SETUP.md @@ -81,11 +81,15 @@ mysql -hmysql -upact_broker -ppact_broker ```sh bundle exec rake ``` +* To set up the database (this is done automatically when running the default rake task, but if you want to run a different task without running the default task first, this must be run once beforehand): + ```sh + bundle exec rake db:prepare:test + ``` * To run a smaller subset of the tests: ```sh bundle exec rake spec ``` -* To run the "quick tests" (skip the lengthy migration specs) +* To run the "quick tests" (skip the lengthy migration specs and db setup) ```sh bundle exec rake spec:quick ``` @@ -94,7 +98,5 @@ mysql -hmysql -upact_broker -ppact_broker bundle exec rspec path_to_your_spec.rb ``` -NOTE: the spec tasks requires the `db:prepare:test` task to be executed at least once prior to running. - [chruby]: https://github.com/postmodern/chruby [ruby-install]: https://github.com/postmodern/ruby-install