Add command to print pytest with colors in Docker (#473)

This commit is contained in:
Bas Nijholt 2023-03-26 18:46:36 -07:00 committed by GitHub
commit a523cccb04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: