run-test

Execute npm test suites with file patterns, watch mode, and timeouts.

547|153|Updated Jul 14, 2021
One-click install
npx skills add https://github.com/mx-space/core --skill run-test-mx-space
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: run-test
Source: https://github.com/mx-space/core/tree/main/.claude/skills/run-test
Command: npx skills add https://github.com/mx-space/core --skill run-test-mx-space

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill simplifies running and managing test suites for projects, saving development time and reducing manual effort.

Core Features & Use Cases

  • Test execution: Run all tests, specific files, or pattern-matched test cases within large codebases.
  • Flexible testing options: Watch mode, specific test case targeting, and timeout adjustments facilitate efficient testing workflows.
  • Use Case: A developer wants to quickly verify a particular feature or run the entire test suite after changes, ensuring code quality with minimal hassle.

Quick Start

Use the run-test skill to execute all tests in the project or target specific test files or cases by providing their paths or patterns.

Frequently Asked Questions about run-test

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

FAQPage Schema
How do I run specific test files matching a pattern in a large codebase?

To run specific test files, you can execute tests by providing file paths or pattern-matched criteria. This allows you to target specific test cases or features within large codebases instead of running the entire suite.

Can I use watch mode for real-time test monitoring during development?

Yes, watch mode is supported for real-time monitoring during development. This flexible testing option automatically reruns tests when changes are detected, facilitating efficient testing workflows and improving developer productivity.

Do I need npm to execute automated tests with this workflow?

Yes, familiarity with npm is required to execute automated tests using this workflow. You need to understand npm and test runner parameters to effectively prioritize and customize test execution.

How do I adjust timeouts for specific test cases in my test suite?

You can adjust timeouts for specific test cases through flexible testing options. This allows you to customize test execution parameters, ensuring reliable test runs for cases that require more time to complete.

What is the best way to automate e2e and jest testing in a CI pipeline?

The best way to automate e2e and jest testing is by using automated commands that support patterns and specific file targeting. This streamlines the testing process within your CI pipeline, ensuring code reliability and reducing manual effort.

Why should I prioritize specific tests instead of running the entire suite after changes?

Prioritizing specific tests after changes saves development time and reduces manual effort. By targeting only affected files or pattern-matched cases, you can quickly verify particular features and ensure code quality with minimal hassle.