Test Runner Skill

Run tests for changed files since the last commit in git-based JavaScript/TypeScript projects.

1|Updated Apr 17, 2025
One-click install
npx skills add https://github.com/WellFitCommunity/WellFit-Community-Daily-Complete --skill test-runner-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Test Runner Skill
Source: https://github.com/WellFitCommunity/WellFit-Community-Daily-Complete/tree/main/.claude/skills/test-runner
Command: npx skills add https://github.com/WellFitCommunity/WellFit-Community-Daily-Complete --skill test-runner-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill dramatically speeds up your development workflow by intelligently running only the tests affected by your recent changes, providing instant feedback and reducing waiting times.

Core Features & Use Cases

  • Smart Test Execution: Automatically detects changed files and runs only related tests, saving significant time compared to a full suite.
  • Comprehensive Modes: Offers Full Mode for complete validation, Coverage Mode for reporting, Watch Mode for active development, and Failed Only for quick re-runs.
  • Performance Optimization: Achieve 85-92% faster test execution in smart mode compared to running the entire test suite.
  • Use Case: Default to smart mode during active development for quick feedback, use full mode before commits or PRs, and coverage mode before releases to ensure code quality.

Quick Start

Run tests in smart mode for the files I've changed since my last commit and report the results.

Frequently Asked Questions about Test Runner Skill

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

FAQPage Schema
How do I run only tests for files I've changed since my last commit?

Smart test execution automatically detects changed files in your git repository and runs only related tests, reducing execution time by 85-92% compared to full suite runs. This mode is ideal for active development when you need instant feedback on your recent changes.

What test modes does this Skill support for JavaScript and TypeScript projects?

Five modes optimize different workflows: Smart Mode runs tests for changed files, Full Mode validates the entire suite, Coverage Mode reports code coverage metrics, Watch Mode enables continuous testing during development, and Failed Only re-runs only previously failed tests.

Do I need a specific test file naming convention or directory structure?

Yes, the Skill requires a conventional file-to-test mapping, such as src/services/X.ts mapping to src/services/__tests__/X.test.ts. Your project must have a configured test runner and use git for change detection to work properly.

What environment and tools are required to use this Skill?

You need a git-based JavaScript or TypeScript project with an npm environment, Node.js installed, and a configured test runner. The Skill detects changed files through git and executes tests using your existing test suite tooling.

When should I use Full Mode instead of Smart Mode?

Use Full Mode before commits or pull requests to validate the entire test suite, ensuring no regressions in untouched code. Smart Mode is best for active development iteration when you need rapid feedback on specific changes.

Can I generate a coverage report while running tests on changed files?

Yes, Coverage Mode runs tests and produces detailed code coverage reports, making it ideal before releases. This helps ensure code quality standards are met across your modified and related test files.