Commit graph

8 commits

Author SHA1 Message Date
Mario Guggenberger
6283158ff7
VS Code Dev Container (dev & test environment) (#605)
* build: dev container

Add a VS Code Dev Container from the blueprint at bceaae212f

* build: dev container test setup

Add support for unit testing in the dev container environment with debugging and code coverage.

* ci: adjust to dev container test restructuring

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* ci: fix coverage collection

* build: add dummy light to HA config

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* build: update dev container to Python 3.11 (for HA 2023.6)

* Add VS Code tasks

* Use pre-commit hooks for linting

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Unpin HA version

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bas Nijholt <basnijholt@gmail.com>
2023-06-11 15:33:07 -07:00
Benjamin Auquite
f5abf034c4
Fix the docker tests instructions (#543)
* Tested on multiple hardware

Turns out windows 10 and 11 can't use `$(pwd):/app` OR `%cd%:/app` in PowerShell (which replaced cmd prompt), so I looked up the docs and made the necessary changes (again, sorry!)

These changes have been tested on all terminal environments except macOS (the docs say it'll work there)

* allow use of --exitfirst for faster debug

* Remove install in actions

---------

Co-authored-by: Bas Nijholt <basnijholt@gmail.com>
Co-authored-by: Bas Nijholt <bas@nijho.lt>
2023-04-05 09:13:57 -07:00
Benjamin Auquite
e4d06476fd
Add windows command for Docker test instructions (#536)
* ( Tiny Change ) Add windows command for dockertest

You said it earlier but the correct command for running the Docker image on windows is:
```bash
docker run -v %cd%:/app basnijholt/adaptive-lighting:latest
```

* Update README.md

---------

Co-authored-by: Bas Nijholt <basnijholt@gmail.com>
2023-04-03 23:47:08 -07:00
Bas Nijholt
0127496441
Add example of how to pass command line args (#483) 2023-03-27 05:47:50 +00:00
Bas Nijholt
85461ea856
Always color the logs and print coverage report (#481) 2023-03-27 04:37:21 +00:00
Bas Nijholt
aa282c83b2
Fix Markdown URL (#479) 2023-03-26 19:50:40 -07:00
Bas Nijholt
a523cccb04
Add command to print pytest with colors in Docker (#473) 2023-03-27 01:46:36 +00:00
Bas Nijholt
1b08e8e6ba
Add testing Dockerfile (#470)
* Add testing Dockerfile

* Add comments

* Format table

* Add tests/README.md

* Rephrase

* add note in dockerfile
2023-03-27 01:18:18 +00:00