Loading...
Loading...
Generates comprehensive, workable unit tests for any programming language using a multi-agent pipeline. Use when asked to generate tests, write unit tests, improve test coverage, add test coverage, create test files, or test a codebase. Supports C#, TypeScript, JavaScript, Python, Go, Rust, Java, and more. Orchestrates research, planning, and implementation phases to produce tests that compile, pass, and follow project conventions.
npx skill4agent add github/awesome-copilot polyglot-test-agent┌─────────────────────────────────────────────────────────────┐
│ 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-researcher.testagent/research.mdpolyglot-test-planner.testagent/plan.mdpolyglot-test-implementerpolyglot-test-builderpolyglot-test-testerpolyglot-test-fixerpolyglot-test-linter.testagent/| File | Purpose |
|---|---|
| Codebase analysis results |
| Phased implementation plan |
| Progress tracking (optional) |
Generate unit tests for my Calculator project at C:\src\CalculatorGenerate unit tests for src/services/UserService.tsAdd 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 |
polyglot-test-fixer.testagent/plan.md