Skip to content

Commit

Permalink
debugging workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
henricasanova committed Sep 12, 2024
1 parent 57cdfd9 commit 6c843b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .compute_coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ for file in tests/*.py; do
echo "FILE: $file"
if [ -f "$file" ]; then
if [ "$first_file_executed" = false ]; then
python3 -m coverage run "$file"
python3 -m coverage run --data-file=/tmp/.coverage "$file"
first_file_executed=true
else
python3 -m coverage run -a "$file"
python3 -m coverage run --data-file=/tmp/.coverage -a "$file"
fi

fi
done

echo "COMPUTING COVERAGE REPORT"
python3 -m coverage report | grep TOTAL | sed "s/.* //"
echo "(To see full report: python3 -m coverage html)" >&2
python3 -m coverage report --data-file=/tmp/.coverage | grep TOTAL | sed "s/.* //"
echo "(To see full report: python3 -m coverage html --data-file=/tmp/.coverage )" >&2

0 comments on commit 6c843b9

Please sign in to comment.