Skip to content

Commit

Permalink
docs: [torrust#56] update README for integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
josecelano committed Nov 30, 2022
1 parent d1059f5 commit cf09283
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions tests/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
### Running Tests
Torrust requires Docker to run different database systems for testing. [install docker here](https://docs.docker.com/engine/).
# Running Tests

Torrust requires Docker to run different database systems for testing. [Install docker here](https://docs.docker.com/engine/).

Start the databases with `docker-compose` before running tests:

$ docker-compose up
```s
docker-compose -f tests/docker-compose.yml up
```

Run all tests using:

$ cargo test
```s
cargo test
```

Connect to the DB using MySQL client:

```s
mysql -h127.0.0.1 -uroot -ppassword torrust-index_test
```

0 comments on commit cf09283

Please sign in to comment.