run-tests

How to run tests in this project. Load when implementing or verifying code.

⭐0stars🔀0forks📁View on GitHub🕐Updated Dec 2, 2025

When & Why to Use This Skill

This Claude skill streamlines the software testing process by providing standardized commands and workflows for executing tests, checking code coverage, and debugging failures across various programming environments like Node.js, Python, Go, and Rust. It ensures code reliability by facilitating rapid verification during the implementation phase.

Use Cases

  • Verifying code changes: Running comprehensive test suites immediately after implementing new features to ensure no regressions are introduced.
  • Targeted debugging: Executing specific test files or patterns in isolation to quickly identify and resolve bugs in particular components.
  • Code quality assurance: Generating and analyzing coverage reports to identify untested code paths and improve overall project robustness.
  • Efficient development workflow: Running only the tests affected by recent changes (changedSince=HEAD) to minimize wait times during local development iterations.
namerun-tests
descriptionHow to run tests in this project. Load when implementing or verifying code.
allowed-toolsBash

Run Tests Skill

Project-specific test execution.

Test Commands

# Run all tests
# TODO: Add your test command
npm test
# pytest
# go test ./...
# cargo test

# Run specific file
# TODO: Add your pattern
npm test -- --testPathPattern={file}
# pytest {file} -v

# Run affected tests
npm test -- --changedSince=HEAD

Test Patterns

  • Test files: **/*.test.ts or **/__tests__/*.ts
  • Test naming: describe('Component', () => { it('should...') })

Coverage

# Run with coverage
npm test -- --coverage

Debugging Failed Tests

  1. Read the error message
  2. Check the test file
  3. Check the source file
  4. Run single test in isolation