Skip to content

Commit

Permalink
Merge pull request #89 from planetargon/rr-update-development-docs
Browse files Browse the repository at this point in the history
Update testing documentation
  • Loading branch information
djmb committed Oct 3, 2023
2 parents 49c9690 + 1e9a085 commit 42c58bf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ GEM
PLATFORMS
arm64-darwin-21
arm64-darwin-22
arm64-darwin-23
x86_64-darwin-20
x86_64-linux

Expand Down
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,16 +250,25 @@ The Solid Cache migrations try to create an index with 1024 byte entries. If tha

## Development

Run the tests with `bin/rails test`. These will run against SQLite.
Run the tests with `bin/rails test`. By default, these will run against SQLite.

You can also run the tests against MySQL and Postgres. First start up the databases:
You can also run the tests against MySQL and PostgreSQL. First start up the databases:

```shell
$ docker compose up -d
```

Then run the tests for the target database
Next, setup the database schema:

```shell
$ TARGET_DB=mysql bin/rails db:setup
$ TARGET_DB=postgres bin/rails db:setup
```


Then run the tests for the target database:

```shell
$ TARGET_DB=mysql bin/rails test
$ TARGET_DB=postgres bin/rails test
```
Expand Down

0 comments on commit 42c58bf

Please sign in to comment.