Files
python/Makefile
2021-12-25 13:09:23 -08:00

29 lines
503 B
Makefile

# only run the fast unit tests
test:
pytest -m unit
# local install
install:
pip install .
# lint the codebase
lint:
pylint meshtastic
# show the slowest unit tests
slow:
pytest --durations=0
# run the coverage report and open results in a browser
cov:
pytest --cov-report html --cov=meshtastic
# on mac, this will open the coverage report in a browser
open htmlcov/index.html
# run cli examples
examples: FORCE
pytest -mexamples
# Makefile hack to get the examples to always run
FORCE: ;