Skip to content

Commit 3ecb16a

Browse files
committed
Configure test coverage
* Install via cargo * Change arguments * Add codecov config
1 parent c32e6cd commit 3ecb16a

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.github/workflows/rust.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ jobs:
2020

2121
steps:
2222
- uses: actions/checkout@v4
23-
- name: download grcov for code coverage
24-
run: curl -L https://github.com/mozilla/grcov/releases/latest/download/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar jxf -
2523
- name: install llvm tools preview
2624
run: rustup component add llvm-tools-preview
25+
- name: install grcov
26+
run: cargo install grcov --root .
2727
- name: Build
2828
run: cargo build --all-features
2929
- name: Run tests
3030
run: LLVM_PROFILE_FILE="your_name-%p-%m.profraw" cargo test --all-features
3131
- name: Generate lcov.info for Code coverage
32-
run: ./grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info
32+
run: ./bin/grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore src/tests/* -o lcov.info
3333
- name: Codecov
3434
uses: codecov/[email protected]
3535
with:

codecov.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
comment:
2+
layout: "condensed_header, diff, flags, components"
3+
4+
component_management:
5+
individual_components:
6+
- component_id: v1.6
7+
name: v.1.6
8+
paths:
9+
- src/v1_6
10+
- component_id: v2.0
11+
name: v.2.0.1
12+
paths:
13+
- src/v2_0_1

0 commit comments

Comments
 (0)