From cf092835863780c411881479d3350586c36a1ba0 Mon Sep 17 00:00:00 2001 From: Jose Celano Date: Wed, 2 Nov 2022 10:37:49 +0000 Subject: [PATCH] docs: [#56] update README for integration tests --- tests/README.md | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/tests/README.md b/tests/README.md index 81e9d18a..2cad69c7 100644 --- a/tests/README.md +++ b/tests/README.md @@ -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 +```