Some tests use services hosted on Docker containers. Please, make sure you have installed at least docker-ce
and docker-compose
.
Before testing, please create the container image:
$ cd test_resources/test_server
$ docker-compose build
To start the container in foreground with logs execute:
$ cd test_resources/test_server
$ docker-compose up
To execute the containers in background add -d
to the docker-compose
command:
$ cd test_resources/test_server
$ docker-compose up -d
To run the tests just execute at the project directory:
$ cargo test
If the containers are executed in foreground, just press Ctrl+C
. If the containers are executed
in background, execute:
$ cd test_resources/test_server
$ docker-compose stop