From a523cccb0412d960c2b76a44d1e020bc7823141d Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Sun, 26 Mar 2023 18:46:36 -0700 Subject: [PATCH] Add command to print pytest with colors in Docker (#473) --- tests/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/README.md b/tests/README.md index 3176f04e..f879529d 100644 --- a/tests/README.md +++ b/tests/README.md @@ -9,6 +9,12 @@ To run the tests using the Docker image, navigate to the `adaptive-lighting` rep docker run -v $(pwd):/app basnijholt/adaptive-lighting:latest ``` +and to show the logs with colors use: + +```bash +docker run -v $(pwd):/app -e 'PYTEST_ADDOPTS="--color=yes"' basnijholt/adaptive-lighting:latest +``` + This command will download the Docker image from [the adaptive-lighting Docker Hub repo]((https://hub.docker.com/r/basnijholt/adaptive-lighting)) and run the tests. If you prefer to build the image yourself, use the following command: