targeted-test-runner

Run tests related to recently changed files across multiple frameworks.

Updated Mar 11, 2026
One-click install
npx skills add https://github.com/Oiranca/copilot-agents-skills --skill targeted-test-runner
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: targeted-test-runner
Source: https://github.com/Oiranca/copilot-agents-skills/tree/main/skills/targeted-test-runner
Command: npx skills add https://github.com/Oiranca/copilot-agents-skills --skill targeted-test-runner

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill speeds up the validation process by running only the tests relevant to recently modified code, avoiding the need to execute the entire test suite.

Core Features & Use Cases

  • Focused Test Execution: Identifies and runs tests directly related to changed files.
  • Rapid Validation: Provides quick feedback on the impact of code modifications.
  • Use Case: After updating an API endpoint, use this skill to run only the tests that cover that specific endpoint and its dependencies, rather than the whole backend test suite.

Quick Start

Run tests relevant to the files changed in this commit.

Frequently Asked Questions about targeted-test-runner

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

FAQPage Schema
How do I run focused tests on recently changed files instead of the whole test suite?

Yes, targeted test execution supports multiple test frameworks including Jest, Vitest, Mocha, Pytest, Go test, and Cargo test. It identifies and runs tests directly related to changed files across these environments for rapid validation.

What are the file and runtime limitations when running targeted tests for code changes?

Targeted test execution limits runs to 10 test files and enforces a 5-minute runtime per command. Results are classified as PASS, FAIL, SKIP, or TIMEOUT, ensuring rapid validation of code modifications within strict boundaries.

Where can I find the results after executing focused tests for modified code?

Focused test execution results are reported in TEST_REPORT.md and DECISIONS.md files. These documents classify outcomes as PASS, FAIL, SKIP, or TIMEOUT, providing quick feedback on the impact of your code modifications.

Why should I use focused test execution for code validation instead of running everything?

Focused test execution speeds up the validation process by running only the tests relevant to recently modified code. This avoids executing the entire test suite, providing rapid feedback on the impact of specific code changes like an updated API endpoint.