Skip to content

Commit

Permalink
ci(Coverage): Make grcov ignore sources in the examples directory as …
Browse files Browse the repository at this point in the history
…they should not contribute to the overall test coverage of the library.
  • Loading branch information
RomanHodulak committed Dec 5, 2021
1 parent f57b01f commit c26f784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ jobs:
LLVM_PROFILE_FILE: "your_name-%p-%m.profraw"
RUSTFLAGS: "-Zinstrument-coverage"
- name: Run grcov to generate lcov coverage report
run: ./grcov . -s ./src --binary-path ./target/debug/ -t lcov --branch --ignore-not-existing -o lcov.info --ignore tests.rs --ignore '*/.cargo/*' --excl-line '^\s*\}\s*$'
run: ./grcov . -s ./src --binary-path ./target/debug/ -t lcov --branch --ignore-not-existing -o lcov.info --ignore tests.rs --ignore '*/.cargo/*' --ignore '*/examples/*' --excl-line '^\s*\}\s*$'
- name: Upload coverage report
run: bash <(curl -s https://codecov.io/bash)

0 comments on commit c26f784

Please sign in to comment.