code-testing-agent

Generates unit tests for multiple languages using a research, plan, and implement pipeline.

Updated Jul 12, 2026
One-click install
npx skills add https://github.com/Patrick-Rex/DotNetTechSamples --skill code-testing-agent-patrick-rex
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-testing-agent
Source: https://github.com/Patrick-Rex/DotNetTechSamples/tree/main/.agents/plugins/dotnet-test/skills/code-testing-agent
Command: npx skills add https://github.com/Patrick-Rex/DotNetTechSamples --skill code-testing-agent-patrick-rex

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing comprehensive unit tests by hand is slow and often skipped, leaving codebases with low coverage and untested edge cases. This Skill automates test generation across languages and frameworks, producing tests that compile, pass, and follow project conventions. ## Core Features & Use Cases - Multi-language test generation: Supports C#/.NET, Python (pytest), TypeScript/JavaScript (Vitest, Jest, Mocha), Go, Rust, and Java (JUnit), with coverage tooling like coverlet, pytest-cov, and @vitest/coverage-v8. - Coordinated agent pipeline: Runs a Research → Plan → Implement workflow with dedicated builder, tester, fixer, and linter agents, storing state in a .testagent/ folder. - Convention-aware output: Discovers existing test layout, naming, mocking, and assertion patterns before writing tests, targeting 80% coverage with parameterized, behavior-pinning tests. - Use Case: Ask it to generate unit tests for an entire billing service; it researches the codebase, plans phased test scenarios, writes the tests, builds and runs them, and fixes failures automatically. ## Quick Start Ask the agent to generate unit tests for a specific file, project, or service, optionally naming your preferred test framework and coverage goal.

Frequently Asked Questions about code-testing-agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate unit tests for an entire project?

Describe the scope, such as a project, service, or file path, and the skill runs a research, plan, and implement pipeline. It analyzes conventions, writes phased test plans, generates tests, then builds and runs them with automatic fix cycles.

What testing frameworks does automated test generation support?

It supports MSTest and other .NET frameworks, pytest for Python, Vitest, Jest, and Mocha for TypeScript/JavaScript, Go's testing package, Rust, and JUnit for Java. Coverage tooling includes coverlet, pytest-cov, and @vitest/coverage-v8.

Can I generate pytest or Vitest tests for a specific file?

Yes, single-file requests use a direct strategy that writes tests immediately without sub-agents. Specify the file path and preferred framework, for example asking for pytest tests for a Flask route module.

Why do generated tests fail after creation?

Most failures come from wrong expected values in assertions, not production code bugs. Read the actual test output and production code, then fix the assertion rather than the source, and never skip tests just to make them pass.

When should I not use automated test generation?

Do not use it for running existing tests, analyzing coverage reports, or writing MSTest-specific patterns, which have dedicated skills. It also avoids integration tests that depend on external services, network ports, or precise timing.