mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-11 14:24:03 +02:00
Always color the logs and print coverage report (#481)
This commit is contained in:
parent
491aca696c
commit
85461ea856
2 changed files with 6 additions and 6 deletions
|
|
@ -52,6 +52,12 @@ CMD ["python3", \
|
|||
"--cov='homeassistant'", \
|
||||
# Generate an XML report of the code coverage
|
||||
"--cov-report=xml", \
|
||||
# Generate an HTML report of the code coverage
|
||||
"--cov-report=html", \
|
||||
# Print a summary of the code coverage in the console
|
||||
"--cov-report=term", \
|
||||
# Print logs in color
|
||||
"--color=yes", \
|
||||
# Print a count of test results in the console
|
||||
"-o", "console_output_style=count", \
|
||||
# Run tests in the 'tests/components/adaptive_lighting' directory
|
||||
|
|
|
|||
|
|
@ -9,12 +9,6 @@ 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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue