Code coverage report aggregation
@@ -77,8 +77,14 @@ jobs:
run: rustup toolchain install nightly --component llvm-tools-preview
- name: Install cargo-llvm-cov
run: curl -LsSf https://github.com/taiki-e/cargo-llvm-cov/releases/latest/download/cargo-llvm-cov-x86_64-unknown-linux-gnu.tar.gz | tar xzf - -C ~/.cargo/bin
- - name: Generate code coverage
- run: cargo llvm-cov --features ignore_in_ci --workspace --lcov --output-path lcov.info
+ - name: clean
+ run: cargo llvm-cov clean --workspace
+ - name: Generate code coverage for unit test
+ run: cargo llvm-cov --features ignore_in_ci --workspace --lcov --output-path lcov.info --no-report
+ - name: Generate code coverage for integration tests
+ run: cargo llvm-cov --lcov --no-report --test integration
+ - name: Aggregate reports
+ run: cargo llvm-cov --no-run --lcov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
