Run Tests Skill
Trigger Phrases
This skill is automatically triggered when the user:
- •Asks to "run tests" or "execute tests"
- •Requests test verification or checking
- •Wants to "test" or "verify" code
- •Mentions "test suite", "test coverage", or "test results"
- •Asks if tests pass or fail
Delegation Instructions
When this skill is triggered:
- •Delegate immediately to the
test-runneragent - •Specify which tests to run (all, specific files, etc.)
- •Include test options if mentioned (coverage, watch, etc.)
- •Provide context about recent changes
- •Include any test configuration
Context to Pass
- •Test Scope: Which tests to run (all, specific, etc.)
- •Test Options: Coverage, watch mode, etc.
- •Recent Changes: Code changes that might affect tests
- •Environment: Test environment requirements
- •Configuration: Test configuration or options
- •Expected Results: What should pass
Agent Responsibilities
The test-runner agent will:
- •Execute the appropriate test commands
- •Analyze test results
- •Report test outcomes
- •Identify test failures
- •Provide test statistics
- •Suggest next steps for failures
Usage Examples
Example 1: Run All Tests
User: "Run all tests to make sure everything works"
Delegation: Delegate to test-runner with:
- •Scope: All tests
- •Context: Recent code changes
Example 2: Specific Tests
User: "Run the authentication tests"
Delegation: Delegate to test-runner with:
- •Scope: Authentication test files
- •Focus: Authentication functionality
Example 3: With Coverage
User: "Run tests with coverage report"
Delegation: Delegate to test-runner with:
- •Scope: All tests
- •Options: Coverage report
- •Goal: Check test coverage
Best Practices
- •Delegate test execution to test-runner
- •Specify test scope clearly
- •Include test options if needed
- •Provide context about changes
- •Request detailed results