en un clic
tests
Generate comprehensive tests via test-generator agent
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Menu
Generate comprehensive tests via test-generator agent
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Basé sur la classification professionnelle SOC
| name | tests |
| description | Generate comprehensive tests via test-generator agent |
Invokes the test-generator agent for comprehensive test generation.
Determine test scope:
Launch test-generator agent via Task tool:
Task({
subagent_type: "test-generator",
prompt: "Generate comprehensive tests for [target]:
Testing approach:
- Integration tests for P0/P1/P2 components (95%+ coverage)
- Unit tests for P3/P4/P5 components (50-70% coverage)
- Mock only at boundaries (Tauri APIs, file system)
- Use real implementations for business logic
Follow Testing Pyramid methodology."
})
| Priority | Components | Coverage Target |
|---|---|---|
| P0 | Core data (Loro, ObjectStore) | 95%+ integration |
| P1 | Sync, encryption | 95%+ integration |
| P2 | Business logic | 90%+ integration |
| P3 | UI components | 70% unit |
| P4 | Utilities | 50-70% unit |
| P5 | Edge cases | As needed |
User: "Generate tests for TasksView"
Launch agent:
Task({
subagent_type: "test-generator",
prompt: "Generate tests for src/components/views/TasksView.tsx:
Component functionality:
- Displays filtered task list
- Supports priority filtering
- Shows overdue, today, this week sections
Generate:
- Integration tests with real ObjectStore
- Mock only Tauri APIs
- Test filter interactions
- Test empty states"
})
User: "Generate tests for useInbox hook"
Launch agent:
Task({
subagent_type: "test-generator",
prompt: "Generate tests for src/hooks/useInbox.ts:
Hook functionality:
- Returns inbox items (inboxed: true)
- Excludes Tags, Projects, Areas
- Provides processItem function
Generate:
- Unit tests with mocked ObjectContext
- Test filtering logic
- Test processItem behavior"
})
Generate a new React component with Mantine styling
Update documentation after implementing features or making changes
Run a quick architecture review via architect-reviewer agent
Generate mobile-specific React components with platform detection and safe areas
Run a quick security audit on recent changes or specific files
Generate a test file for a component, hook, or utility