coverage-analysis

star 185

Run test coverage analysis (make test_coverage), parse coverage percentage, compare against the 95% threshold, and flag regressions. Triggers on: PR checks, post-build validation, release prep.

aztfmod By aztfmod schedule Updated 3/23/2026

name: coverage-analysis description: "Run test coverage analysis (make test_coverage), parse coverage percentage, compare against the 95% threshold, and flag regressions. Triggers on: PR checks, post-build validation, release prep."

Coverage Analysis

Procedure

1. Run coverage

make test_coverage 2>&1 | tee /tmp/coverage-output.txt

2. Extract coverage percentage

grep "coverage:" /tmp/coverage-output.txt | tail -1

Parse the percentage value (e.g., 99.3%).

3. Check threshold

The minimum coverage threshold is 95%.

4. Report

If above threshold:

✅ Coverage: <percentage>% (threshold: 95%)

If below threshold:

⚠️ Coverage: <percentage>% — BELOW THRESHOLD (95%)
   Consider adding tests for uncovered code paths.

5. Detailed breakdown (optional)

If requested, generate HTML coverage report:

make test_coverage_html

This creates a coverage report that can be opened in a browser for line-by-line analysis.

6. Cleanup

rm -f /tmp/coverage-output.txt
Install via CLI
npx skills add https://github.com/aztfmod/terraform-provider-azurecaf --skill coverage-analysis
Repository Details
star Stars 185
call_split Forks 99
navigation Branch main
article Path SKILL.md
More from Creator