Skip to content

Commit cf09283

Browse files
committed
docs: [#56] update README for integration tests
1 parent d1059f5 commit cf09283

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

tests/README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
1-
### Running Tests
2-
Torrust requires Docker to run different database systems for testing. [install docker here](https://docs.docker.com/engine/).
1+
# Running Tests
2+
3+
Torrust requires Docker to run different database systems for testing. [Install docker here](https://docs.docker.com/engine/).
34

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

6-
$ docker-compose up
7+
```s
8+
docker-compose -f tests/docker-compose.yml up
9+
```
710

811
Run all tests using:
912

10-
$ cargo test
13+
```s
14+
cargo test
15+
```
16+
17+
Connect to the DB using MySQL client:
18+
19+
```s
20+
mysql -h127.0.0.1 -uroot -ppassword torrust-index_test
21+
```

0 commit comments

Comments
 (0)