Skip to content

Commit

Permalink
fix: adjust test and cov params to test
Browse files Browse the repository at this point in the history
Signed-off-by: Prateek Chandra <[email protected]>
  • Loading branch information
pchandra19 committed Aug 11, 2023
1 parent 9777e8a commit 34e3727
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,12 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --no-fail-fast # Customize args for your own needs
env:
CARGO_INCREMENTAL: '0'
RUSTFLAGS: |
-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code
-Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests -Cinstrument-coverage
RUSTDOCFLAGS: |
-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code
-Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests -Cinstrument-coverage'
-Cinstrument-coverage
LLVM_PROFILE_FILE: |
'cargo-test-%p-%m.profraw'
- name: Download grcov
run: |
Expand All @@ -61,4 +58,8 @@ jobs:
- name: Gather coverage data
id: coverage
uses: actions-rs/[email protected]

- name: html
run: |
grcov . --binary-path ./target/debug/deps/ -s . -t html --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o target/coverage/html

0 comments on commit 34e3727

Please sign in to comment.