Generate test coverage report in CircleCI (#110)

* coverage?

* generate_coverage

* +x

* 1.62.1

* 62

* ignore

* store

* quote
This commit is contained in:
Mostafa Abdelraouf
2022-08-08 09:51:36 -05:00
committed by GitHub
parent b828e62408
commit b79f55abd6
2 changed files with 19 additions and 7 deletions

7
.circleci/generate_coverage.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
rust-profdata merge -sparse pgcat-*.profraw -o pgcat.profdata
rust-cov export -ignore-filename-regex="rustc|registry" -Xdemangler=rustfilt -instr-profile=pgcat.profdata --object ./target/debug/pgcat --format lcov > ./lcov.info
genhtml lcov.info --output-directory /tmp/cov --prefix $(pwd)