Skip to content

Commit

Permalink
Merge pull request #356 from x-hgg-x/filter-coverage
Browse files Browse the repository at this point in the history
Filter coverage results
  • Loading branch information
lopopolo authored Aug 22, 2022
2 parents f31fe96 + c017b20 commit dd00bf8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions github-org-artichoke/templates/rust-code-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,13 @@ jobs:
RUSTFLAGS: "-C instrument-coverage"
# Unstable feature: https://github.com/rust-lang/rust/issues/56925
RUSTDOCFLAGS: "-C instrument-coverage -Z unstable-options --persist-doctests target/debug/doctests"
run: |
cargo +nightly test --lib
cargo +nightly test --doc
run: cargo test

- name: Generate HTML report
run: grcov ${github_repository}*.profraw --source-dir . --binary-path target/debug -t html --filter covered -o target/coverage
run: grcov ${github_repository}*.profraw --source-dir . --keep-only 'src/**/*.rs' --binary-path target/debug -t html --filter covered -o target/coverage

- name: Generate detailed JSON report
run: grcov ${github_repository}*.profraw --source-dir . --binary-path target/debug -t covdir --filter covered -o target/coverage/coverage.json
run: grcov ${github_repository}*.profraw --source-dir . --keep-only 'src/**/*.rs' --binary-path target/debug -t covdir --filter covered -o target/coverage/coverage.json

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@master
Expand Down

0 comments on commit dd00bf8

Please sign in to comment.