Loading...
Loading...
Compare original and translation side by side
┌─────────────────────────────────────────────────────────────┐
│ TEST GENERATOR │
│ Coordinates the full pipeline and manages state │
└─────────────────────┬───────────────────────────────────────┘
│
┌─────────────┼─────────────┐
▼ ▼ ▼
┌───────────┐ ┌───────────┐ ┌───────────────┐
│ RESEARCHER│ │ PLANNER │ │ IMPLEMENTER │
│ │ │ │ │ │
│ Analyzes │ │ Creates │ │ Writes tests │
│ codebase │→ │ phased │→ │ per phase │
│ │ │ plan │ │ │
└───────────┘ └───────────┘ └───────┬───────┘
│
┌─────────┬───────┼───────────┐
▼ ▼ ▼ ▼
┌─────────┐ ┌───────┐ ┌───────┐ ┌───────┐
│ BUILDER │ │TESTER │ │ FIXER │ │LINTER │
│ │ │ │ │ │ │ │
│ Compiles│ │ Runs │ │ Fixes │ │Formats│
│ code │ │ tests │ │ errors│ │ code │
└─────────┘ └───────┘ └───────┘ └───────┘┌─────────────────────────────────────────────────────────────┐
│ TEST GENERATOR │
│ Coordinates the full pipeline and manages state │
└─────────────────────┬───────────────────────────────────────┘
│
┌─────────────┼─────────────┐
▼ ▼ ▼
┌───────────┐ ┌───────────┐ ┌───────────────┐
│ RESEARCHER│ │ PLANNER │ │ IMPLEMENTER │
│ │ │ │ │ │
│ Analyzes │ │ Creates │ │ Writes tests │
│ codebase │→ │ phased │→ │ per phase │
│ │ │ plan │ │ │
└───────────┘ └───────────┘ └───────┬───────┘
│
┌─────────┬───────┼───────────┐
▼ ▼ ▼ ▼
┌─────────┐ ┌───────┐ ┌───────┐ ┌───────┐
│ BUILDER │ │TESTER │ │ FIXER │ │LINTER │
│ │ │ │ │ │ │ │
│ Compiles│ │ Runs │ │ Fixes │ │Formats│
│ code │ │ tests │ │ errors│ │ code │
└─────────┘ └───────┘ └───────┘ └───────┘polyglot-test-generatorGenerate unit tests for [path or description of what to test], following the [unit-test-generation.prompt.md](unit-test-generation.prompt.md) guidelinespolyglot-test-generatorGenerate unit tests for [path or description of what to test], following the [unit-test-generation.prompt.md](unit-test-generation.prompt.md) guidelinespolyglot-test-researcher.testagent/research.mdpolyglot-test-researcher.testagent/research.mdpolyglot-test-planner.testagent/plan.mdpolyglot-test-planner.testagent/plan.mdpolyglot-test-implementerpolyglot-test-builderpolyglot-test-testerpolyglot-test-fixerpolyglot-test-linterpolyglot-test-implementerpolyglot-test-builderpolyglot-test-testerpolyglot-test-fixerpolyglot-test-linter.testagent/| File | Purpose |
|---|---|
| Codebase analysis results |
| Phased implementation plan |
| Progress tracking (optional) |
.testagent/| 文件 | 用途 |
|---|---|
| 代码库分析结果 |
| 分阶段实现计划 |
| 进度跟踪(可选) |
Generate unit tests for my Calculator project at C:\src\CalculatorGenerate unit tests for my Calculator project at C:\src\CalculatorGenerate unit tests for src/services/UserService.tsGenerate unit tests for src/services/UserService.tsAdd tests for the authentication module with focus on edge casesAdd tests for the authentication module with focus on edge cases| Agent | Purpose | Tools |
|---|---|---|
| Coordinates pipeline | runCommands, codebase, editFiles, search, runSubagent |
| Analyzes codebase | runCommands, codebase, editFiles, search, fetch, runSubagent |
| Creates test plan | codebase, editFiles, search, runSubagent |
| Writes test files | runCommands, codebase, editFiles, search, runSubagent |
| Compiles code | runCommands, codebase, search |
| Runs tests | runCommands, codebase, search |
| Fixes errors | runCommands, codebase, editFiles, search |
| Formats code | runCommands, codebase, search |
| Agent | 用途 | 工具 |
|---|---|---|
| 协调整个流程 | runCommands, codebase, editFiles, search, runSubagent |
| 分析代码库 | runCommands, codebase, editFiles, search, fetch, runSubagent |
| 创建测试计划 | codebase, editFiles, search, runSubagent |
| 编写测试文件 | runCommands, codebase, editFiles, search, runSubagent |
| 编译代码 | runCommands, codebase, search |
| 运行测试 | runCommands, codebase, search |
| 修复错误 | runCommands, codebase, editFiles, search |
| 格式化代码 | runCommands, codebase, search |
polyglot-test-fixer.testagent/plan.mdpolyglot-test-fixer.testagent/plan.md