diff options
Diffstat (limited to 'check')
-rwxr-xr-x | check | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -11,7 +11,7 @@ then fi PYTHON="${PYTHON:-python3}" -NOSE2="${NOSE2:-$PYTHON -m nose2}" +COVERAGE="${COVERAGE:-python3-coverage}" export PYTHONDEVMODE=1 @@ -20,11 +20,11 @@ shift 1 case $SUBCMD in "tests") - $NOSE2 $COVER_OPT --log-level=ERROR -B --log-capture $* + $PYTHON -m unittest discover -s tests ;; "coverage") - $NOSE2 --with-coverage --coverage-report=term-missing \ - --log-level=ERROR -B --log-capture $* + $COVERAGE run --source=hazwaz -m unittest discover -s tests + $COVERAGE report -m ;; "qa") flake8 --select=E,F,W,C90,E123 --ignore=W503 . |