mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-11 23:17:48 +00:00
Added db setup for testing
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user