From 94d88e280b1afec8ffe94788162ad6e66a0353cc Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 7 Oct 2015 22:13:22 +0200 Subject: [PATCH] tox: Add pytest-sugar. Nicer test output FTW! --- scripts/dev/ci_run.py | 8 +++++--- tox.ini | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/dev/ci_run.py b/scripts/dev/ci_run.py index bbbd075d7..42e12a3a6 100644 --- a/scripts/dev/ci_run.py +++ b/scripts/dev/ci_run.py @@ -56,7 +56,9 @@ elif travis_os == 'osx' and testenv == 'py34': if testenv == 'eslint': subprocess.check_call(['eslint', 'qutebrowser']) elif testenv == 'py34' and travis_os == 'linux': - subprocess.check_call(['xvfb-run', '-s', '-screen 0 640x480x16', - 'tox', '-e', testenv]) + cmdline = ['xvfb-run', '-s', '-screen 0 640x480x16'] else: - subprocess.check_call(['tox', '-e', testenv]) + cmdline = [] + +cmdline += ['tox', '-e', testenv, '--', '-p', 'no:sugar', 'tests'] +subprocess.check_call(cmdline) diff --git a/tox.ini b/tox.ini index 8ba988746..55c8af674 100644 --- a/tox.ini +++ b/tox.ini @@ -22,6 +22,7 @@ deps = pytest-mock==0.8.1 pytest-html==1.6 pytest-faulthandler==1.0.1 + pytest-sugar==0.4.0 xvfbwrapper==0.2.5 hypothesis==1.11.4 coverage==4.0.0