TestGen helps Codex, Claude Code, Cursor, Cline, Continue, Roo Code, Gemini CLI, OpenCode, and MCP hosts generate tests safely. It detects repo frameworks, exposes machine-readable capabilities, creates review-first patches, and validates with your project tooling.
TestGen gives every supported agent the same safe testing workflow.
Install .codex/skills/testgen/SKILL.md so Codex knows when and how to generate tests.
Use the repo-local command to keep Claude in a dry-run, review-first testing flow.
Give OpenCode the same JSON contract, patch output, and write controls.
Expose analyze, generate, and validate as MCP tools for hosts that prefer tool calls.
TestGen gives LLM coding agents the commands, schemas, and repo context they need to stop guessing.
testgen doctor checks languages, frameworks, test folders, provider keys, ignored files, and suggests the safest first command.
testgen capabilities tells agents which commands, flags, languages, frameworks, schemas, and limitations are available.
Detect Jest, Vitest, pytest, unittest, Go testing, JUnit, xUnit, PHPUnit, RSpec, GoogleTest, Kotest, and more.
Stable JSON schemas make analyze, generate, patch, validate, capabilities, and error outputs reliable for wrappers and MCP hosts.
Users talk to their coding agent. The agent calls TestGen for scanning, generation, patches, and validation.
Agents start with dry-run artifacts and patches, not silent file writes.
Generated tests follow existing frameworks, helpers, fixtures, mocks, names, and assertions.
Analyze scope and estimated provider cost before sending generation requests.
Agent files stay small. TestGen owns the actual orchestration.
After review, agents can write tests and validate them with the project workflow.
TestGen currently supports JavaScript/TypeScript, Python, Go, Rust, Java, C#, PHP, Ruby, C++, and Kotlin.
Jest, Vitest
pytest
testing, testify
cargo test
The agent skill is designed to avoid blind edits. It inspects the repo, generates dry-run output, explains the patch, and only writes files after review or explicit instruction.
testgen analyze for scope and cost--dry-run --emit-patch --output-format jsoncurl -fsSL https://raw.githubusercontent.com/princepal9120/testgen/main/install.sh | bash
curl -fsSL https://raw.githubusercontent.com/princepal9120/testgen/main/scripts/install-agent-skill.sh | bash
Use TestGen to analyze this repo and generate review-first tests for ./src.
Install once per repo, then use plain language with your coding agent.
Skills and commands live in the target repo so agents discover the workflow naturally.
Dry-run mode is the default. File writes are a separate, intentional step.
The README and integrations docs focus on agent installation, prompts, and behavior.
The engine remains testable and maintainable while the product stays skill-first.