run-tests
How to run tests in this project. Load when implementing or verifying code.
allowed_tools: Bash
$ 安裝
git clone https://github.com/Clouder0/dotagent /tmp/dotagent && cp -r /tmp/dotagent/templates/skills/run-tests ~/.claude/skills/dotagent// tip: Run this command in your terminal to install the skill
SKILL.md
name: run-tests description: How to run tests in this project. Load when implementing or verifying code. allowed-tools: Bash
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.tsor**/__tests__/*.ts - Test naming:
describe('Component', () => { it('should...') })
Coverage
# Run with coverage
npm test -- --coverage
Debugging Failed Tests
- Read the error message
- Check the test file
- Check the source file
- Run single test in isolation
Repository

Clouder0
Author
Clouder0/dotagent/templates/skills/run-tests
0
Stars
0
Forks
Updated3d ago
Added1w ago