smart-test-runner

Map changed files to minimal test suites and execute them.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/rawhit-r/ai-files --skill smart-test-runner-rawhit-r
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: smart-test-runner
Source: https://github.com/rawhit-r/ai-files/tree/main/.gemini/smart-test-runner
Command: npx skills add https://github.com/rawhit-r/ai-files --skill smart-test-runner-rawhit-r

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Determine and run only the minimum set of tests affected by code changes, saving time while maintaining confidence.

Core Features & Use Cases

  • Maps changed files to relevant test files across E2E, contract, unit, integration, and shell tests.
  • Provides deterministic commands to execute the identified tests.
  • Supports quick verification after changes to ensure coverage.

Quick Start

Identify changed files with git diff and let Smart Test Runner map them to the minimal test subset and execute them.

Frequently Asked Questions about smart-test-runner

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run only the tests affected by recent code changes?

Test selection for code changes works by mapping files from git diff output to predefined test mappings, identifying the minimal affected subset across E2E, contract, unit, integration, and shell tests to execute.

What is git diff based test mapping and how does it work?

Git diff based test mapping is a process that reads changed files from git diff output and maps them to predefined test suites, identifying the minimal subset of E2E, contract, unit, integration, and shell tests needed to verify those specific changes.

Can I use automated test selection for both unit and E2E test suites?

Yes, automated test selection supports mapping changed files to relevant test suites across E2E, contract, unit, integration, and shell tests, providing deterministic commands to execute the minimal affected subset.

How do I set up predefined test mappings for my software testing workflow?

Setting up predefined test mappings involves defining deterministic relationships between your source files and corresponding test suites, which the test runner then uses alongside git diff outputs to select and execute the correct minimal tests.

What are the limitations of using git diff for CI test selection?

A limitation of using git diff for CI test selection is that it relies entirely on predefined test mappings and git diff outputs; if mappings are incomplete or changes affect shared dependencies unpredictably, the minimal selected subset might miss critical tests.

Why do I need to run only a subset of tests after modifying code?

Running a subset of tests after modifying code saves verification time while maintaining confidence, as the deterministic mapping ensures only the minimal test suites directly affected by the changed files are selected and executed.