Smart Test Runner
SkillFiles & storageThis skill should be used when the user asks to "run tests", "test my changes", "check if tests pass", or mentions testing changed files. Detects modified files and routes to the appropriate test suite.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Smart Test Runner skill
What this skill tells your AI
The instructions your AI receives, as published by aws-samples/sample-ai-persona in .claude/skills/run-tests/SKILL.md and read by ahel’s review.
Detect changed files and execute the matching test suite.
Workflow
-
Detect changed files:
- Feature branch:
git diff --name-only origin/main...HEAD - Main branch:
git diff --name-only HEAD~1
- Feature branch:
-
Route to test suite based on file patterns:
| Changed path | Test command |
|---|---|
src/managers/*.py | uv run pytest tests/unit/ -q --tb=short |
src/services/*.py | uv run pytest tests/integration/ -q --tb=short |
web/routers/*.py | uv run pytest tests/api/ -q --tb=short |
web/templates/*.html, web/static/* | uv run pytest tests/api/ -q --tb=short |
cdk/**/*.ts | cd cdk && npx tsc --noEmit && npx cdk synth --no-staging |
| No match | uv run pytest -m unit -q --tb=short |
-
Execute mapped tests.
-
Report results:
- Pass/fail counts
- Failure analysis (if any)
- Suggest new tests for uncovered code
Signals
- GitHub stars
- 24
- Forks
- 6
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
run-tests-aws-samples- Source
- github.com/aws-samples/sample-ai-persona