Skip to content

Commit c99fb09

Browse files
authored
Adds brief testing docs to README (#398)
Not much more to add :)
2 parents 83b718a + b43bff6 commit c99fb09

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,20 @@ Also avilable to override are: `SEEDING_TEACHER_ID`.
111111

112112
The `*-to-local.sh` scripts will backup the database in your local terminal, then run an instance of the Docker container and run commands to populate your development DB with that data - see [./bin/db-sync/load-local-db.sh](./bin/db-sync/load-local-db.sh)
113113

114+
### Testing
115+
116+
Run the entire test suite using:
117+
118+
```
119+
docker-compose run api rspec
120+
```
121+
122+
Or individual specs using:
123+
124+
```
125+
docker-compose run api rspec spec/path/to/spec.rb
126+
```
127+
114128
### CORS Allowed Origins
115129

116130
Add a comma separated list to the relevant enviroment settings. E.g for development in the `.env` file:

0 commit comments

Comments
 (0)