test-generator
Generate comprehensive test suites including unit tests, integration tests, and E2E tests
📖 中文导读:Generate comprehensive test suites including unit tests, integration tests, and E2E tests 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: Test Generator slug: test-generator description: Generate comprehensive test suites including unit tests, integration tests, and E2E tests category: technical complexity: intermediate version: "1.0.0" author: "ID8Labs" triggers: - "generate tests" - "write tests" - "test coverage" tags: - testing - test-generation - quality
Test Generator
Generate comprehensive test suites that catch bugs before production. From unit tests to E2E scenarios, create tests that give you confidence to ship.
Core Workflows
Workflow 1: Unit Test Generation
- Analyze Code - Understand function inputs/outputs
- Happy Path - Test expected behavior
- Edge Cases - Test boundary conditions
- Error Cases - Test failure scenarios
- Mocking - Create mocks for dependencies
Workflow 2: E2E Test Generation
- User Flows - Identify critical paths
- Test Scenarios - Write step-by-step tests
- Selectors - Define robust element selectors
- Assertions - Verify expected outcomes
- Data Setup - Handle test data
Quick Reference
| Action | Command |
|---|---|
| Generate unit tests | "Generate tests for [function]" |
| E2E tests | "Create E2E tests for [flow]" |
| Coverage report | "Analyze test coverage" |