testing/write-tests
Writes unit and integration tests with proper mocking and coverage.
- Kind
- Prompt
- Works with
- Claude Code
- Source
- Claude Code Templates @ 72e5f237f64d
- Path
- cli-tool/components/commands/testing/write-tests.md
- Jobs
- Testing
- Topics
- Unit tests & TDD
Credit
- Made by
- davila7
- Original
- github.com/davila7/claude-code-templates/blob/72e5f237f64d70a…
- License
- MIT
Listed by Skill Manifest; not made by us.
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
Install factsScanned 3 Nov 2026
- Adds
- .claude/commands/write-tests.md (run as /write-tests)
- Runs scripts
- Yes
- allowed-tools includes Bash
- Uses the network
- None found
- Needs secrets
- None found
- Source revision
- 72e5f237f64d
- Licence
- MIT
- Last activity
- 26 Nov 2026
- Source changed after the scan
- Yes
- Last push 26 Nov 2026, scanned 3 Nov 2026; read it again before you rely on this scan
- Review
- Reviewed
Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.
# Write Tests Write comprehensive unit and integration tests with framework-specific best practices: **$ARGUMENTS** ## Current Testing Context - Test framework: !`find . -name "jest.config.*" -o -name "*.test.*" | head -1 && echo "Jest/Vitest detected" || echo "Detect framework"` - Target file: Analysis of $ARGUMENTS for test requirements and complexity - Project patterns: !`find . -name "*.test.*" -o -name "*.spec.*" | head -3` existing test patterns - Coverage setup: !`grep -l "coverage" package.json jest.config.* 2>/dev/null | head -1 || echo "Setup needed"` ## Task Execute comprehensive test writing with framework-specific optimizations and best practices: **Test Focus**: Use $ARGUMENTS to specify target file, unit tests, integration tests, e2e tests, or component tests **Test Writing Framework**: 1. **Code Analysis** - Analyze target code structure, identify testable functions, assess dependency complexity, evaluate edge cases 2. **Test Strategy Design** - Plan test organization, design test hierarchies, identify mock requirements, optimize test isolation …