Skip to content

Commit d93f40c

Browse files
committed
ci: Enable MC/DC coverage
en.wikipedia.org/wiki/Code_coverage#Modified_condition/decision_coverage MC/DC is finding some partially covered lines, so coverage drops. This is expected.
1 parent a1b9364 commit d93f40c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/check.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
with:
6767
version: ${{ matrix.rust-toolchain }}
6868
components: ${{ matrix.rust-toolchain == 'stable' && 'llvm-tools-preview' || '' }}
69-
tools: ${{ matrix.rust-toolchain == 'stable' && 'cargo-llvm-cov, ' || '' }} cargo-nextest
69+
tools: ${{ matrix.rust-toolchain == 'nightly' && 'cargo-llvm-cov, ' || '' }} cargo-nextest
7070
token: ${{ secrets.GITHUB_TOKEN }}
7171

7272
- id: nss-version
@@ -88,8 +88,8 @@ jobs:
8888
DUMP_SIMULATION_SEEDS="$(pwd)/simulation-seeds"
8989
export DUMP_SIMULATION_SEEDS
9090
# shellcheck disable=SC2086
91-
if [ "${{ matrix.rust-toolchain }}" == "stable" ]; then
92-
cargo +${{ matrix.rust-toolchain }} llvm-cov nextest $BUILD_TYPE --features ci --profile ci --lcov --output-path lcov.info
91+
if [ "${{ matrix.rust-toolchain }}" == "nightly" ]; then
92+
cargo +${{ matrix.rust-toolchain }} llvm-cov nextest $BUILD_TYPE --mcdc --features ci --profile ci --lcov --output-path lcov.info
9393
else
9494
cargo +${{ matrix.rust-toolchain }} nextest run $BUILD_TYPE --features ci --profile ci
9595
fi
@@ -119,7 +119,7 @@ jobs:
119119
verbose: true
120120
env:
121121
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
122-
if: matrix.type == 'debug' && matrix.rust-toolchain == 'stable'
122+
if: matrix.type == 'debug' && matrix.rust-toolchain == 'nightly'
123123

124124
- name: Save simulation seeds artifact
125125
if: always()

0 commit comments

Comments
 (0)