chore(tools): add user friendly coverage make command

- add a command allowing to run tests and coverage in one go
This commit is contained in:
Arthur Meyre
2021-07-26 14:23:35 +02:00
parent 95f05800d5
commit f910f1fa9c
2 changed files with 8 additions and 3 deletions

View File

@@ -6,9 +6,7 @@ set +e
CURR_DIR=`dirname $0`
# Run diff-coverage
poetry run diff-cover coverage.xml --fail-under 100 \
--html-report coverage.html \
--compare-branch origin/"$1" | tee diff-coverage.txt
BB="origin/$1" make coverage | tee diff-coverage.txt
# Get exit code without closing the script
TEST_EXIT_CODE="$?"