1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 14:31:46 +00:00

move to nose2

This commit is contained in:
deadc0de6
2022-05-20 22:10:26 +02:00
committed by deadc0de
parent ceb2b7ad73
commit fb35f228d5
2 changed files with 3 additions and 16 deletions

View File

@@ -41,15 +41,6 @@ pylint \
--disable=C0209 \
dotdrop/
# retrieve the nosetests binary
nosebin="nosetests"
which ${nosebin} >/dev/null 2>&1
[ "$?" != "0" ] && nosebin="nosetests3"
which ${nosebin} >/dev/null 2>&1
[ "$?" != "0" ] && echo "Install nosetests" && exit 1
echo "nose version:"
${nosebin} --version
# do not print debugs when running tests (faster)
export DOTDROP_FORCE_NODEBUG=yes
@@ -74,15 +65,11 @@ fi
if [ -z ${GITHUB_WORKFLOW} ]; then
## local
export COVERAGE_FILE=
PYTHONPATH="dotdrop" ${nosebin} -s --processes=-1 --with-coverage --cover-package=dotdrop
#export DOTDROP_DEBUG=yes
#unset DOTDROP_FORCE_NODEBUG
PYTHONPATH="dotdrop" nose2 --with-coverage --coverage dotdrop --plugin=nose2.plugins.mp -N0
else
## CI/CD
export COVERAGE_FILE="${cur}/.coverage"
PYTHONPATH="dotdrop" ${nosebin} --processes=0 --with-coverage --cover-package=dotdrop
#unset DOTDROP_DEBUG=
#export DOTDROP_FORCE_NODEBUG=yes
PYTHONPATH="dotdrop" nose2 --with-coverage --coverage dotdrop
fi
#PYTHONPATH="dotdrop" python3 -m pytest tests