From 7e084f081d48b81875fe3b087b9b073e0c3af5e7 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Fri, 7 Aug 2020 16:59:43 +0200 Subject: [PATCH] fix coverage --- tests.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests.sh b/tests.sh index c8f1a46..eedbfa5 100755 --- a/tests.sh +++ b/tests.sh @@ -25,10 +25,20 @@ which ${nosebin} 2>/dev/null [ "$?" != "0" ] && echo "Install nosetests" && exit 1 set -e +# do not print debugs when running tests (faster) +export DOTDROP_FORCE_NODEBUG=yes + +# coverage file location +cur=`dirname $(readlink -f "${0}")` +export COVERAGE_FILE="${cur}/.coverage" + # execute tests with coverage PYTHONPATH=dotdrop ${nosebin} -s --with-coverage --cover-package=dotdrop #PYTHONPATH=dotdrop python3 -m pytest tests +# enable debug logs +export DOTDROP_DEBUG= +unset DOTDROP_FORCE_NODEBUG # do not print debugs when running tests (faster) #export DOTDROP_FORCE_NODEBUG=yes