aboutsummaryrefslogtreecommitdiff
path: root/run_tests
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2019-07-07 12:34:41 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2019-07-07 12:34:41 +0200
commit820ac976e61c2d908a35a2cb2914dffc9822e095 (patch)
tree225e1b8eb4e5eb689ee157f6255d6c87e4d3a072 /run_tests
parentfc1978d00f546935e93ab12b2d3b4ede71ed93cb (diff)
Only show coverage when requested
Diffstat (limited to 'run_tests')
-rwxr-xr-xrun_tests8
1 files changed, 7 insertions, 1 deletions
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