August 2017
Intermediate to advanced
332 pages
9h 16m
English
We can run the test locally using the Docker Compose command from the root project directory:
$ docker-compose -f docker-compose.yml -f acceptance/docker-compose-acceptance.yml -p acceptance up -d --build
The command uses two Docker Compose configurations to run the acceptance project. One of the started containers should be called acceptance_test_1 and be interested in its result. We can check its logs with the following command:
$ docker logs acceptance_test_1 % Total % Received % Xferd Average Speed Time 100 1 100 1 0 0 1 0 0:00:01
The log shows that the curl command has been successfully called. If we want to check whether the test succeeded or failed, we can check the exit code of the container:
$ docker ...
Read now
Unlock full access