Added db setup for testing

Neal Chambers
2023-06-06 11:02:40 +09:00
parent 4c967f6ba4
commit 32a968ccf1

@@ -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.