From 32a968ccf18844b79d492843455e48eadfc76e99 Mon Sep 17 00:00:00 2001 From: Neal Chambers Date: Tue, 6 Jun 2023 11:02:40 +0900 Subject: [PATCH] Added db setup for testing --- Development-Environment-Setup:-Ubuntu.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Development-Environment-Setup:-Ubuntu.md b/Development-Environment-Setup:-Ubuntu.md index 4be1d9c..9c0f240 100644 --- a/Development-Environment-Setup:-Ubuntu.md +++ b/Development-Environment-Setup:-Ubuntu.md @@ -76,3 +76,11 @@ Chrome or Chromium is used for UI testing. This is automated using a driver. Ins sudo apt install -y chromium-browser sudo apt install -y chromium-chromedriver + +## Step 6. Prepare the Database for Testing + +Tests, both unit and integration, are based on RSpec. To run the test suite, first prepare the test database: + +`bundle exec rake db:test:prepare` + +For more details on testing, please check [that section](https://github.com/macanudo527/openfoodnetwork/blob/master/GETTING_STARTED.md#testing) of the GETTING_STARTED guide.