From 53114adadde6c9286942bc0b746c821972ff6016 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Tue, 24 Mar 2015 12:00:34 +0100 Subject: [PATCH] tox: Use pytest as test runner --- tox.ini | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index 25991bd..cb2b756 100644 --- a/tox.ini +++ b/tox.ini @@ -4,12 +4,18 @@ envlist = py27, flake8 [testenv] sitepackages = true deps = - coverage mock - nose mopidy==dev + pytest + pytest-cov + pytest-xdist 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] deps =