summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
Diffstat (limited to 'check')
-rwxr-xr-xcheck8
1 files changed, 4 insertions, 4 deletions
diff --git a/check b/check
index 4961935..2082dd9 100755
--- a/check
+++ b/check
@@ -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 .