Smart Test Runner

SkillFiles & storage

This 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.

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

  1. Detect changed files:

    • Feature branch: git diff --name-only origin/main...HEAD
    • Main branch: git diff --name-only HEAD~1
  2. Route to test suite based on file patterns:

Changed pathTest command
src/managers/*.pyuv run pytest tests/unit/ -q --tb=short
src/services/*.pyuv run pytest tests/integration/ -q --tb=short
web/routers/*.pyuv run pytest tests/api/ -q --tb=short
web/templates/*.html, web/static/*uv run pytest tests/api/ -q --tb=short
cdk/**/*.tscd cdk && npx tsc --noEmit && npx cdk synth --no-staging
No matchuv run pytest -m unit -q --tb=short
  1. Execute mapped tests.

  2. 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