test-generator

Generates compilable unit tests for any programming language via a Research-Plan-Implement pipeline.

1|Updated May 19, 2026
One-click install
npx skills add https://github.com/thomasmartinsen/talks --skill test-generator-thomasmartinsen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-generator
Source: https://github.com/thomasmartinsen/talks/tree/main/20260519%20-%20Agentic%20engineering/primitives/skills/testing/skills/test-generator
Command: npx skills add https://github.com/thomasmartinsen/talks --skill test-generator-thomasmartinsen

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Writing comprehensive unit tests manually is time-consuming and often results in poor coverage, inconsistent conventions, or tests that fail to compile. This Skill automates the entire test generation workflow across any programming language, producing tests that actually build and pass. ## Core Features & Use Cases - Polyglot Test Generation: Supports C#, TypeScript, JavaScript, Python, Go, Rust, Java, and more, auto-detecting the testing framework (MSTest, xUnit, Jest, pytest, go test). - Structured Pipeline: Uses a Research → Plan → Implement workflow with specialized agents that analyze the codebase, phase the work, and run build/test/fix cycles until tests pass. - Convention-Aware Output: Discovers existing test patterns, naming conventions, and mocking frameworks, targeting 80% code coverage with parameterized tests. - Use Case: Point it at a legacy service like src/services/UserService.ts and receive a complete Jest test suite that compiles, passes, and follows your project's existing patterns. ## Quick Start Ask the AI to generate unit tests for a specific file, module, or your entire project, optionally specifying a preferred testing framework or coverage focus.

Frequently Asked Questions about test-generator

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

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

Request test generation with a scope such as the whole project, a directory, or a single file. The skill researches your codebase, creates a phased plan, then implements tests phase by phase, verifying each phase compiles and passes before continuing.

What testing frameworks does automated test generation support?

It supports major frameworks including MSTest and xUnit for C#, Jest for TypeScript and JavaScript, pytest for Python, and go test for Go, plus Rust and Java tooling. The framework is auto-detected from your project, or you can specify a preference.

Can I generate tests for a specific file or module only?

Yes, you can scope generation to a single file like src/services/UserService.ts, a module such as an authentication package, or the entire project. You can also specify focus areas like edge cases or coverage goals.

What happens when generated tests fail to compile?

For compiled languages like TypeScript, C#, Go, Rust, and Java, a builder agent detects compilation errors and a fixer agent patches the test or source files automatically. If errors persist after multiple attempts, the failure is logged and reported.

What are the requirements for using automated test generation?

The project needs a configured build and test system, or one that can be discovered automatically, plus an installed or installable testing framework. If detection fails, you can manually specify the language, framework, and build commands.