Skip to content

Commit d3ac0c7

Browse files
committed
fix code coverage
1 parent 08ab422 commit d3ac0c7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,14 @@ jobs:
6969
cargo install cargo-llvm-cov --version 0.6.15
7070
7171
- name: Generate code coverage
72-
run: cargo llvm-cov --package renamify-core --lcov --output-path lcov.info
72+
run: cargo llvm-cov --workspace --lcov --output-path lcov.info
7373

7474
- name: Check coverage threshold
7575
run: |
76-
# TODO - Collect coverage from CLI integration tests too
77-
# Actual coverage is higher than this.
78-
COVERAGE_THRESHOLD=75
76+
COVERAGE_THRESHOLD=85
7977
8078
# Run coverage and capture output
81-
COVERAGE_OUTPUT=$(cargo llvm-cov --package renamify-core 2>&1)
79+
COVERAGE_OUTPUT=$(cargo llvm-cov --workspace 2>&1)
8280
echo "$COVERAGE_OUTPUT"
8381
8482
# Extract coverage percentage from the TOTAL line
@@ -94,7 +92,7 @@ jobs:
9492
echo "Coverage meets ${COVERAGE_THRESHOLD}% threshold: ${COVERAGE}%"
9593
9694
- name: Generate HTML report
97-
run: cargo llvm-cov --package renamify-core --html
95+
run: cargo llvm-cov --workspace --html
9896

9997
- name: Upload coverage report
10098
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)