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:
parent
0c9f56bc04
commit
c75772855a
2 changed files with 12 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -3,3 +3,4 @@ src/devicetree.egg-info/
|
||||||
build/
|
build/
|
||||||
devicetree.egg-info/
|
devicetree.egg-info/
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
.tox/
|
||||||
|
|
|
||||||
11
tox.ini
Normal file
11
tox.ini
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
[tox]
|
||||||
|
envlist=py3
|
||||||
|
|
||||||
|
[testenv]
|
||||||
|
deps =
|
||||||
|
setuptools-scm
|
||||||
|
pytest
|
||||||
|
setenv =
|
||||||
|
TOXTEMPDIR={envtmpdir}
|
||||||
|
commands =
|
||||||
|
python -m pytest {posargs:tests}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue