forked from torrust/torrust-index
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: [torrust#56] update README for integration tests
- Loading branch information
1 parent
d1059f5
commit cf09283
Showing
1 changed file
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |