Agent skill
run-tests
Execute test suites and report results. Use when validating code functionality.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/run-tests
SKILL.md
Run Tests
Execute test suites to verify code functionality and identify regressions or failures.
When to Use
- Pre-commit validation
- Running tests after changes
- Verifying test suite passes
- Generating test reports
Quick Reference
# Run all tests with Mojo
pixi run mojo test -I . tests/
# Run specific test file
mojo test -I . tests/shared/core/test_example.mojo
# Run with verbose output
mojo test -I . tests/ -v
# Python pytest
pytest tests/
pytest tests/ -v --tb=short
Workflow
- Set up test environment: Ensure all dependencies installed
- Select tests: Choose which test suite or specific tests to run
- Execute tests: Run test runner with appropriate options
- Review results: Check pass/fail status and output
- Debug failures: Investigate and fix failing tests
Output Format
Test results:
- Total tests run
- Passed/failed/skipped counts
- Failure details (assertion message, stack trace)
- Execution time per test
- Test coverage metrics (if applicable)
References
- See
generate-testsskill for creating tests - See
calculate-coverageskill for coverage analysis - See CLAUDE.md > TDD in Key Development Principles
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?