Skip to content

Commit

Permalink
Adapt codecov tool to new release of tarpaulin.
Browse files Browse the repository at this point in the history
  • Loading branch information
orium committed Sep 20, 2023
1 parent e77aeb2 commit be09ea0
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tools/codecov.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ source "tools/utils.sh"

assert_installed "cargo-tarpaulin"

output_format=Html
output_format=html

args=$(getopt -l "xml" -o "x" -- "$@")
args=$(getopt -o '' -l xml -- "$@")

eval set -- "$args"

Expand All @@ -26,9 +26,8 @@ while [ $# -ge 1 ]; do
shift
break
;;
-x|--xml)
output_format=Xml
shift
--xml)
output_format=xml
;;
esac

Expand All @@ -39,7 +38,7 @@ done
cargo clean
cargo tarpaulin --force-clean --ignore-panics --engine llvm --timeout 1200 --out $output_format

if [ "$output_format" == "Html" ]; then
if [ "$output_format" == "html" ]; then
echo
echo "You can find the test coverage results at file://$(pwd)/tarpaulin-report.html"
fi

0 comments on commit be09ea0

Please sign in to comment.