1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-10 03:59:17 +00:00
This commit is contained in:
deadc0de6
2023-01-29 21:29:19 +01:00
committed by deadc0de
parent b9cde3b8dc
commit ddd60a38ac
131 changed files with 135 additions and 154 deletions

View File

@@ -17,20 +17,7 @@ cur=$(dirname "$(${rl} "${0}")")
if [ -n "${DOTDROP_WORKERS}" ]; then
unset DOTDROP_WORKERS
echo "DISABLE workers"
echo "DISABLE workers for unittests"
fi
# execute tests with coverage
if [ -z "${GITHUB_WORKFLOW}" ]; then
## local
export COVERAGE_FILE=
# do not print debugs when running tests (faster)
# tests
PYTHONPATH="dotdrop" nose2 --with-coverage --coverage dotdrop --plugin=nose2.plugins.mp -N0
else
## CI/CD
export COVERAGE_FILE="${cur}/.coverage"
# tests
PYTHONPATH="dotdrop" nose2 --with-coverage --coverage dotdrop
fi
#PYTHONPATH="dotdrop" python3 -m pytest tests
coverage run -p -m pytest tests