mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-15 18:30:05 +00:00
move to nose2
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
pycodestyle; python_version > '3.4'
|
pycodestyle; python_version > '3.4'
|
||||||
nose; python_version > '3.4'
|
nose2; python_version > '3.4'
|
||||||
coverage; python_version > '3.4'
|
coverage; python_version > '3.4'
|
||||||
coveralls; python_version > '3.4'
|
coveralls; python_version > '3.4'
|
||||||
pyflakes; python_version > '3.4'
|
pyflakes; python_version > '3.4'
|
||||||
|
|||||||
17
tests.sh
17
tests.sh
@@ -41,15 +41,6 @@ pylint \
|
|||||||
--disable=C0209 \
|
--disable=C0209 \
|
||||||
dotdrop/
|
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)
|
# do not print debugs when running tests (faster)
|
||||||
export DOTDROP_FORCE_NODEBUG=yes
|
export DOTDROP_FORCE_NODEBUG=yes
|
||||||
|
|
||||||
@@ -74,15 +65,11 @@ fi
|
|||||||
if [ -z ${GITHUB_WORKFLOW} ]; then
|
if [ -z ${GITHUB_WORKFLOW} ]; then
|
||||||
## local
|
## local
|
||||||
export COVERAGE_FILE=
|
export COVERAGE_FILE=
|
||||||
PYTHONPATH="dotdrop" ${nosebin} -s --processes=-1 --with-coverage --cover-package=dotdrop
|
PYTHONPATH="dotdrop" nose2 --with-coverage --coverage dotdrop --plugin=nose2.plugins.mp -N0
|
||||||
#export DOTDROP_DEBUG=yes
|
|
||||||
#unset DOTDROP_FORCE_NODEBUG
|
|
||||||
else
|
else
|
||||||
## CI/CD
|
## CI/CD
|
||||||
export COVERAGE_FILE="${cur}/.coverage"
|
export COVERAGE_FILE="${cur}/.coverage"
|
||||||
PYTHONPATH="dotdrop" ${nosebin} --processes=0 --with-coverage --cover-package=dotdrop
|
PYTHONPATH="dotdrop" nose2 --with-coverage --coverage dotdrop
|
||||||
#unset DOTDROP_DEBUG=
|
|
||||||
#export DOTDROP_FORCE_NODEBUG=yes
|
|
||||||
fi
|
fi
|
||||||
#PYTHONPATH="dotdrop" python3 -m pytest tests
|
#PYTHONPATH="dotdrop" python3 -m pytest tests
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user