From fcb8d0694c47ad8b41bf4e671f6d45f06d5fcd3c Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Thu, 28 Jan 2021 20:51:53 +0000 Subject: [PATCH] use cargo cov / profdata --- circle.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/circle.yml b/circle.yml index 10c002d35..8c225fa47 100644 --- a/circle.yml +++ b/circle.yml @@ -663,14 +663,13 @@ jobs: - run: name: Collect coverage data (Rust) command: | - # todo use cargo profdata annd cargo cov wrappers? - llvm-profdata merge -sparse default.profraw -o default.profdata - - llvm-cov report -use-color -instr-profile default.profdata -Xdemangler rustfilt $OBJECT_ARGS - llvm-cov report -instr-profile default.profdata -Xdemangler rustfilt $OBJECT_ARGS > coverage/report.txt - llvm-cov show -format=html -instr-profile default.profdata -Xdemangler rustfilt -region-coverage-lt=100 $OBJECT_ARGS > coverage/missing.html - llvm-cov show -format=html -instr-profile default.profdata -Xdemangler rustfilt $OBJECT_ARGS > coverage/full.html - llvm-cov export -instr-profile default.profdata -format=lcov $OBJECT_ARGS > coverage.lcov + cargo profdata -- merge -sparse default.profraw -o default.profdata + + cargo cov -- report -use-color -instr-profile default.profdata -Xdemangler rustfilt $OBJECT_ARGS + cargo cov -- report -instr-profile default.profdata -Xdemangler rustfilt $OBJECT_ARGS > coverage/report.txt + cargo cov -- show -format=html -instr-profile default.profdata -Xdemangler rustfilt -region-coverage-lt=100 $OBJECT_ARGS > coverage/missing.html + cargo cov -- show -format=html -instr-profile default.profdata -Xdemangler rustfilt $OBJECT_ARGS > coverage/full.html + cargo cov -- export -instr-profile default.profdata -format=lcov $OBJECT_ARGS > coverage.lcov - store_artifacts: path: ~/build/coverage destination: rust-coverage-unittests