summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
Diffstat (limited to 'check')
-rwxr-xr-xcheck13
1 files changed, 7 insertions, 6 deletions
diff --git a/check b/check
index beb841c..1843ff7 100755
--- a/check
+++ b/check
@@ -10,6 +10,9 @@ then
exit 0
fi
+PYTHON="${PYTHON:-python3}"
+COVERAGE="${COVERAGE:-python3-coverage}"
+
export PYTHONDEVMODE=1
SUBCMD=$1
@@ -17,16 +20,14 @@ shift 1
case $SUBCMD in
"tests")
- #nose2-3 $COVER_OPT --log-level=ERROR -B --log-capture $*
- nosetests3 $*
+ $PYTHON -m unittest discover -s tests
;;
"coverage")
- #nose2-3 --with-coverage --coverage-report=term \
- # --log-level=ERROR -B --log-capture $*
- nosetests3 --with-coverage --cover-erase --cover-package=lesana $*
+ $COVERAGE run --source=lesana -m unittest discover -s tests
+ $COVERAGE report -m
;;
"qa")
- flake8 --select=E,F,W,C90,E123 --ignore=W503 .
+ flake8 --select=E,F,W,C90,E123 --ignore=W503 lesana tests scripts
isort --check-only --diff .
if which doc8
then