test

Identify and run appropriate test suites based on changed files or user requests.

80|49|Updated Mar 27, 2022
One-click install
npx skills add https://github.com/cartridge-gg/controller --skill test-cartridge-gg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test
Source: https://github.com/cartridge-gg/controller/tree/main/.agents/skills/test
Command: npx skills add https://github.com/cartridge-gg/controller --skill test-cartridge-gg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Identify and run the appropriate test suites based on changed files or user requests to optimize testing time.

Core Features & Use Cases

  • Intelligent test scope detection based on changed files and user requests
  • Supports unit tests, visual regression (storybook), and integration tests
  • Per-change routing: Keychain → pnpm test; Component/UI → pnpm test:storybook; Example apps → test specific example; Controller SDK → controller tests + integration

Quick Start

Run tests intelligently by evaluating changed files or user requests and executing the matching test suite.

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 relevant tests for changed files to optimize CI time?

You can optimize CI time by using intelligent test scope detection to identify and run only the appropriate test suites based on changed files or user requests. This targeted approach avoids executing the entire repository suite unnecessarily.

How does routing work for unit tests and storybook visual regression tests?

Routing works by evaluating changed files to map them to specific commands: component and UI changes trigger storybook visual regression tests, while other areas route to their respective unit tests. This ensures the correct test scope is selected automatically.

Can I run integration tests for the Controller SDK alongside unit tests?

Yes, you can run integration tests for the Controller SDK alongside unit tests. Changes to the Controller SDK automatically route to both controller tests and integration tests to ensure comprehensive coverage across the affected scope.

Does this test automation approach support example apps in a pnpm monorepo?

Yes, this test automation approach supports example apps in a pnpm monorepo. When changes are detected in example apps, the system routes to test the specific example affected, ensuring accurate scope detection and optimized test execution.

What is the best way to handle test scope detection across Keychain and UI components?

The best way to handle test scope detection across Keychain and UI components is to use per-change routing rules. Keychain changes route to pnpm test, while component and UI changes trigger pnpm test:storybook for visual regression.