Skip to content

Commit e14099a

Browse files
committed
fix: Use TestIQ pytest plugin for coverage in quality-gate job
- Changed from pytest-cov (coverage.json) to TestIQ plugin (testiq_coverage.json) - TestIQ requires per-test coverage data in its specific format - pytest-cov generates standard coverage.py format which is incompatible - Use --testiq-output flag to generate correct format - Fixes 'Coverage lines must be a list' validation error
1 parent 916981d commit e14099a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,13 @@ jobs:
7878
run: |
7979
uv pip install --system -e .
8080
81-
- name: Run tests with coverage
81+
- name: Run tests with TestIQ coverage
8282
run: |
83-
uv pip install --system pytest pytest-cov
84-
pytest --cov=src/testiq --cov-report=json
83+
pytest tests/ --testiq-output=testiq_coverage.json -q
8584
8685
- name: Analyze test quality with TestIQ
8786
run: |
88-
testiq analyze coverage.json \
87+
testiq analyze testiq_coverage.json \
8988
--quality-gate \
9089
--max-duplicates 10 \
9190
--save-baseline ci-baseline
@@ -95,7 +94,7 @@ jobs:
9594
if: always()
9695
run: |
9796
mkdir -p reports
98-
testiq analyze coverage.json --format html --output reports/testiq-report.html
97+
testiq analyze testiq_coverage.json --format html --output reports/testiq-report.html
9998
10099
- name: Upload TestIQ report
101100
if: always()

0 commit comments

Comments
 (0)