Add option to select specific unit test to Makefile
This commit is contained in:
parent
2852420ea8
commit
490e94e4e3
2
Makefile
2
Makefile
@ -92,7 +92,7 @@ test: lint unit-tests
|
|||||||
|
|
||||||
.PHONY: unit-tests
|
.PHONY: unit-tests
|
||||||
unit-tests: devdeps
|
unit-tests: devdeps
|
||||||
@$(PIPENV) run python3 -m unittest
|
@$(PIPENV) run python3 -m unittest ${TESTS}
|
||||||
|
|
||||||
reset-bootloader:
|
reset-bootloader:
|
||||||
@echo "===> Rebooting your board to bootloader (safe to ignore file not found errors)"
|
@echo "===> Rebooting your board to bootloader (safe to ignore file not found errors)"
|
||||||
|
@ -27,7 +27,9 @@ to Black formatting as documented in `pyproject.toml`)
|
|||||||
Unit tests within the `tests` folder mock various CircuitPython modules to allow
|
Unit tests within the `tests` folder mock various CircuitPython modules to allow
|
||||||
them to be executed in a desktop development environment.
|
them to be executed in a desktop development environment.
|
||||||
|
|
||||||
Execute tests using the command `python -m unittest`.
|
Execute tests using the command `make unit-tests`. The `unit-tests` target
|
||||||
|
accepts an additional environment variable for selection of specific tests,
|
||||||
|
example `make unit-tests TESTS="tests.test_kmk_keys tests.test_layers"`.
|
||||||
|
|
||||||
## Contributing Documentation
|
## Contributing Documentation
|
||||||
While KMK welcomes documentation from anyone with and understanding of the issues
|
While KMK welcomes documentation from anyone with and understanding of the issues
|
||||||
|
Loading…
Reference in New Issue
Block a user