Skip to content

Commit

Permalink
Enable branch coverage, cf. #151
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterthanlime committed Mar 30, 2024
1 parent d13bccd commit 3ceef94
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,11 @@ jobs:
just ci-test
sccache --show-stats
- name: Upload coverage information
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true
- name: Upload h2spec Report
uses: actions/upload-artifact@v3
if: always() # always run even if the previous step fails
Expand Down
20 changes: 19 additions & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,25 @@ _default:
ci-test:
#!/bin/bash -eux
just build-testbed
just cov

export RUSTUP_TOOLCHAIN=nightly
rustup component add llvm-tools
cargo llvm-cov --version

cargo llvm-cov show-env --branch --export-prefix > /tmp/llvm-cov-env
echo "======= LLVM cov env ======="
cat /tmp/llvm-cov-env
echo "============================"
source /tmp/llvm-cov-env

cargo llvm-cov clean --workspace

cargo nextest run --verbose --release --profile ci --manifest-path crates/fluke-hpack/Cargo.toml --features interop-tests --release
cargo nextest run --verbose --release --profile ci --manifest-path crates/fluke/Cargo.toml
cargo nextest run --verbose --release --profile ci --manifest-path test-crates/fluke-curl-tests/Cargo.toml

cargo llvm-cov report --release --lcov --output-path coverage.lcov
cargo llvm-cov report --release --html

cov:
scripts/cov.sh
Expand Down

0 comments on commit 3ceef94

Please sign in to comment.