test

Detects pytest/jest/vitest frameworks and executes tests affected by source changes.

11|3|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/ImperialAutomation/claude-code-toolkit --skill test-imperialautomation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test
Source: https://github.com/ImperialAutomation/claude-code-toolkit/tree/main/skills/test
Command: npx skills add https://github.com/ImperialAutomation/claude-code-toolkit --skill test-imperialautomation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of efficiently running relevant tests by automatically identifying affected test cases based on code changes.

Core Features & Use Cases

  • Smart test selection: Determines and runs only the tests impacted by recent code modifications to save time.
  • Framework detection: Automatically detects whether pytest, jest, or vitest is used in the project.
  • Use Case: For a developer merging a feature branch, the Skill identifies relevant tests related to changed files, executes them, and reports the results promptly.

Quick Start

Run the test runner specifying affected mode to execute relevant tests based on recent changes.

Frequently Asked Questions about test

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?

Smart test selection identifies and runs only the test cases impacted by recent code modifications. It maps source code changes to specific test files to save time and maintain safety during development.

How does automatic test framework detection work for pytest, jest, and vitest?

Framework detection automatically scans the project to identify whether pytest, jest, or vitest is used. This enables seamless execution of targeted tests across multi-framework environments without requiring manual configuration.

Can I categorize and execute integration or unit tests based on impact area?

Yes, the Skill handles test categorization by impact area, explicitly distinguishing between integration and unit testing. It executes targeted tests based on mapped code changes to maintain thoroughness.

What is the best way to automate project testing during CI-CD development?

Automating project testing during CI-CD is best achieved by executing only relevant test cases mapped to source code changes. This ensures rapid feedback and safety without running the entire test suite.

Does this test runner support multi-framework environments?

Yes, the test runner supports multi-framework environments by automatically detecting pytest, jest, or vitest. It maps source code changes to specific test files and executes targeted tests across these frameworks.