Skip to content

Commit

Permalink
use cargo cov / profdata
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Jan 28, 2021
1 parent a0ac52a commit fcb8d06
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fcb8d06

Please sign in to comment.