diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2019-07-07 12:34:41 +0200 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2019-07-07 12:34:41 +0200 |
commit | 820ac976e61c2d908a35a2cb2914dffc9822e095 (patch) | |
tree | 225e1b8eb4e5eb689ee157f6255d6c87e4d3a072 /run_tests | |
parent | fc1978d00f546935e93ab12b2d3b4ede71ed93cb (diff) |
Only show coverage when requested
Diffstat (limited to 'run_tests')
-rwxr-xr-x | run_tests | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |