.github/skills/regression-test-runner/SKILL.md
Run the full CI test suite (make test_ci), parse output, and report pass/fail with failure details. Use after code changes to verify nothing is broken. Triggers on: code changes, PR validation, post-build verification.
npx skillsauth add aztfmod/terraform-provider-azurecaf regression-test-runnerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
make test_ci 2>&1 | tee /tmp/test-ci-output.txt
This runs: unit tests, coverage, resource validation, and matrix testing.
Check exit code:
Extract summary from output:
grep -E "^(ok|FAIL|---)" /tmp/test-ci-output.txt
If all tests pass:
✅ Regression tests: PASSED
Packages: <count> passed
Coverage: <percentage>%
If failures detected:
❌ Regression tests: FAILED
Failed packages:
- <package>: <failure summary>
Failure details:
<relevant test output>
Extract the specific test function names and error messages for each failure.
Extract coverage percentage:
grep "coverage:" /tmp/test-ci-output.txt | tail -1
Flag if coverage drops below 95%.
rm -f /tmp/test-ci-output.txt
development
Analyze test failure output to identify root cause and suggest fixes. Use when build or test failures occur. Triggers on: test failures, build errors, CI failures.
development
Validate a resource definition end-to-end using terraform test with mock_provider azurerm. Proves the CAF-generated name is accepted by the azurerm provider schema without Azure credentials. Use after provider-build-test succeeds to run the mocked azurerm integration test.
documentation
Analyze changes since the last release tag and determine the appropriate semantic version bump (patch/minor/major) based on CHANGELOG entries and commit types. Triggers on: release preparation, version planning.
testing
Compare two versions of resourceDefinition.json (e.g., branch vs main) and produce a structured change summary. Triggers on: PR review, audit, before/after comparison.