Improve testing of NotifyMQTT (#700)

This commit is contained in:
Andreas Motl
2022-10-16 20:35:45 +02:00
committed by GitHub
parent f1836cff84
commit 8983288236
3 changed files with 313 additions and 120 deletions

View File

@@ -47,6 +47,9 @@ if [ $FOUNDROOT -ne 0 ]; then
exit 1
fi
# Tidy previous reports (if present)
[ -d .coverage-reports ] && rm -rf .coverage-reports
# This is a useful tool for checking for any lint errors and additionally
# checking the overall coverage.
which flake8 &>/dev/null
@@ -87,5 +90,11 @@ if [ $RET -ne 0 ]; then
exit 1
fi
# Build our report
LANG=C.UTF-8 PYTHONPATH=$PYTHONPATH coverage combine
# Prepare XML Reference
LANG=C.UTF-8 PYTHONPATH=$PYTHONPATH coverage xml
# Print our report
LANG=C.UTF-8 PYTHONPATH=$PYTHONPATH coverage report --show-missing