Skip to main content

code-testing-agent

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.

소스 정보

저장소
dotnet/machinelearning
최근 소스 활동
2026년 4월 8일 12:42
감지된 SKILL.md 언어
영어
스타
9,359
포크
1,959

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
3 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
code-testing-agent
description
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.
# Code Testing Generation Skill An AI-powered skill that generates comprehensive, workable unit tests for any programming language using a coordinated multi-agent pipeline. ## When to Use This Skill Use this skill when you need to: - Generate unit tests for an entire project or specific files - Improve test coverage for existing codebases - Create test files that follow project conventions - Write tests that actually compile and pass - Add tests for new features or untested code ## When Not to Use - Running or executing existing tests (use the `run-tests` skill) - Migrating between test frameworks (use migration skills) - Debugging failing test logic ## How It Works This skill coordinates multiple specialized agents in a **Research → Plan → Implement** pipeline: ### Pipeline Overview ``` ┌─────────────────────────────────────────────────────────────┐ │ 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 │ └─────────┘ └───────┘ └───────┘ └───────┘ ``` ## Step-by-Step Instructions ### Step 1: Determine the user request Make sure you understand what user is asking and for what scope. When the user does not express strong requirements for test style, coverage goals, or conventions, source the guidelines from [unit-test-generation.prompt.md](unit-test-generation.prompt.md). This prompt provides best practices for discovering conventions, parameterization strategies, coverage goals (aim for 80%), and language-specific patterns. ### Step 2: Invoke the Test Generator Start by calling the `code-testing-generator` agent with your test generation request: ``` Generate unit tests for [path or description of what to test], following the unit-test-generation.prompt.md guidelines ``` The Test Generator will manage the entire pipeline automatically. ## State Management All pipeline state is stored in `.testagent/` folder: | File | Purpose | | ------------------------ | ---------------------------- | | `.testagent/research.md` | Codebase analysis results | | `.testagent/plan.md` | Phased implementation plan | | `.testagent/status.md` | Progress tracking (optional) | ## Agent Reference | Agent | Purpose | | -------------------------- | -------------------- | | `code-testing-generator` | Coordinates pipeline | | `code-testing-researcher` | Analyzes codebase | | `code-testing-planner` | Creates test plan | | `code-testing-implementer` | Writes test files | | `code-testing-builder` | Compiles code | | `code-testing-tester` | Runs tests | | `code-testing-fixer` | Fixes errors | | `code-testing-linter` | Formats code | ## Requirements - Project must have a build/test system configured - Testing framework should be installed (or installable) - VS Code with GitHub Copilot extension ## Troubleshooting ### Tests don't compile The `code-testing-fixer` agent will attempt to resolve compilation errors. Check `.testagent/plan.md` for the expected test structure. Check the `extensions/` folder for language-specific error code references (e.g., `extensions/dotnet.md` for .NET). ### Tests fail Most failures in generated tests are caused by **wrong expected values in assertions**, not production code bugs: 1. Read the actual test output 2. Read the production code to understand correct behavior 3. Fix the assertion, not the production code 4. Never mark tests `[Ignore]` or `[Skip]` just to make them pass ### Environment-dependent tests fail Tests that depend on external services, network endpoints, specific ports, or precise timing will fail in CI environments. Focus on unit tests with mocked dependencies instead. ### Build fails on full solution During phase implementation, build only the specific test project for speed. After all phases, run a full non-incremental workspace build to catch cross-project errors.
GitHub에서 보기