tests: add tox support

You can run 'tox' to run the tests now.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
Martí Bolívar 2021-03-17 22:15:36 -07:00
parent 0c9f56bc04
commit c75772855a
2 changed files with 12 additions and 0 deletions

1
.gitignore vendored
View file

@ -3,3 +3,4 @@ src/devicetree.egg-info/
build/
devicetree.egg-info/
__pycache__/
.tox/

11
tox.ini Normal file
View file

@ -0,0 +1,11 @@
[tox]
envlist=py3
[testenv]
deps =
setuptools-scm
pytest
setenv =
TOXTEMPDIR={envtmpdir}
commands =
python -m pytest {posargs:tests}