From 820ac976e61c2d908a35a2cb2914dffc9822e095 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Sun, 7 Jul 2019 12:34:41 +0200 Subject: Only show coverage when requested --- run_tests | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'run_tests') diff --git a/run_tests b/run_tests index 0d1de1b..b150be0 100755 --- a/run_tests +++ b/run_tests @@ -1,5 +1,11 @@ #!/bin/sh NOSE=$(command -v nose2-3 || command -v nose2) -$NOSE --with-coverage --coverage-report=term-missing +if [ x'--coverage' = x$1 ] +then + COVERAGE='--with-coverage --coverage-report=term-missing' +else + COVERAGE='' +fi +$NOSE $COVERAGE flake8 . mypy pyapd -- cgit v1.2.3