mirror of
https://github.com/Febbweiss/mopidy-touchscreen.git
synced 2026-03-04 22:25:39 +00:00
tox: Use pytest as test runner
This commit is contained in:
12
tox.ini
12
tox.ini
@@ -4,12 +4,18 @@ envlist = py27, flake8
|
|||||||
[testenv]
|
[testenv]
|
||||||
sitepackages = true
|
sitepackages = true
|
||||||
deps =
|
deps =
|
||||||
coverage
|
|
||||||
mock
|
mock
|
||||||
nose
|
|
||||||
mopidy==dev
|
mopidy==dev
|
||||||
|
pytest
|
||||||
|
pytest-cov
|
||||||
|
pytest-xdist
|
||||||
install_command = pip install --allow-unverified=mopidy --pre {opts} {packages}
|
install_command = pip install --allow-unverified=mopidy --pre {opts} {packages}
|
||||||
commands = nosetests -v --with-xunit --xunit-file=xunit-{envname}.xml --with-coverage --cover-package=mopidy_touchscreen
|
commands =
|
||||||
|
py.test \
|
||||||
|
--basetemp={envtmpdir} \
|
||||||
|
--junit-xml=xunit-{envname}.xml \
|
||||||
|
--cov=mopidy_touchpanel --cov-report=term-missing \
|
||||||
|
{posargs}
|
||||||
|
|
||||||
[testenv:flake8]
|
[testenv:flake8]
|
||||||
deps =
|
deps =
|
||||||
|
|||||||
Reference in New Issue
Block a user