Run tests with pytest

This commit is contained in:
Miguel Grinberg
2021-06-06 12:05:21 +01:00
parent a82ed55f56
commit 8b4ebbd953
3 changed files with 9 additions and 10 deletions

12
tox.ini
View File

@@ -13,17 +13,17 @@ python =
[testenv]
commands=
pip install -e microdot
pip install -e microdot-asyncio
coverage run --branch --include="microdot*.py" -m unittest tests
coverage report --show-missing
deps=coverage
pip install -e .
pytest -p no:logging --cov=src --cov-branch --cov-report=term-missing
deps=
pytest
pytest-cov
[testenv:flake8]
deps=
flake8
commands=
flake8 --ignore=W503 --exclude tests/libs microdot microdot-asyncio tests
flake8 --ignore=W503 --exclude tests/libs src tests
[testenv:upy]
whitelist_externals=sh