Komut#cc-toolkit
0
Generate tests
Belirli bir işlev, sınıf veya modül için kapsamlı birim testleri oluşturun.
yazan kuscubasiece·8 Eylül 2026
Kaynak: rohitg00/awesome-claude-code-toolkit · Apache-2.0
Belirli bir işlev, sınıf veya modül için kapsamlı birim testleri oluşturun.
Kaynak: rohitg00/awesome-claude-code-toolkit · Apache-2.0
mkdir -p .claude/commands && curl -sL https://www.antrophiclove.com/api/kaynak/generate-tests-cc-toolkit/raw -o .claude/commands/generate-tests-cc-toolkit.mdHedef dosya: .claude/commands/generate-tests-cc-toolkit.md
---
name: generate-tests
description: Generate comprehensive unit tests for a specified function, class, or module.
---
Generate comprehensive unit tests for a specified function, class, or module.
## Steps
1. Read the target function or module to understand its behavior:
2. Identify test cases by category:
3. Identify dependencies that need mocking:
4. Write tests using the project's testing framework:
5. Add setup and teardown for shared test state.
6. Run the tests to verify they pass.
7. Check coverage: does the new test cover all branches?
## Format
```
Target: <function/class name>
Tests Generated: <count>
Coverage: <lines/branches covered>
Framework: <jest|pytest|cargo test|etc>
```
## Rules
- Follow the existing test conventions in the project.
- Test behavior, not implementation details.
- Mock external dependencies, never make real network calls.