test-generator

Generate unit and integration tests for Jest, Vitest, pytest, and Kotest.

2|Updated Feb 28, 2026
One-click install
npx skills add https://github.com/Dokkabei97/forged-claude-code --skill test-generator-dokkabei97
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-generator
Source: https://github.com/Dokkabei97/forged-claude-code/tree/main/skills/cto/test-generator
Command: npx skills add https://github.com/Dokkabei97/forged-claude-code --skill test-generator-dokkabei97

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the time-consuming process of writing unit and integration tests, allowing developers to focus on core logic and improve code quality.

Core Features & Use Cases

  • Automated Test Suite Generation: Creates comprehensive test suites for functions, classes, and endpoints.
  • Framework Support: Generates tests for Jest, Vitest, pytest, and Kotest.
  • Mock Generation: Automatically creates mocks for external dependencies.
  • Use Case: When you have a new feature implemented in user_service.py, use this Skill to generate a full suite of pytest tests covering happy paths, edge cases, and error handling.

Quick Start

Use the test-generator skill to generate tests for the file src/utils/helpers.ts.

Frequently Asked Questions about test-generator

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

FAQPage Schema
How do I auto-generate unit and integration tests for an existing codebase?

Auto-generate unit and integration tests by analyzing your existing codebase to create comprehensive test suites covering happy paths, edge cases, and error scenarios. The tool plans test cases and writes test files automatically.

Does test generation work with Jest, Vitest, pytest, and Kotest?

Test generation works with Jest, Vitest, pytest, and Kotest. It analyzes your source code and writes framework-specific syntax for your chosen testing platform, generating valid test files for each.

Can I automatically create mocks for external dependencies when generating tests?

You can automatically create mocks for external dependencies during test generation. The tool analyzes your codebase to identify external calls and generates the necessary mock objects within your test files.

What is the best way to write pytest tests covering edge cases and error handling?

The best way to write pytest tests covering edge cases is to use an automated test generator. It analyzes your Python code, plans scenarios for error handling and boundary conditions, and outputs complete pytest files.

How do I generate a full test suite for a specific source file?

Generate a full test suite for a specific source file by providing its path to the test generator. The tool analyzes the file's functions and classes to produce corresponding test files with automated mocks.

What types of test scenarios are covered by automated test generation?

Automated test generation covers happy paths, edge cases, and error scenarios. It analyzes your code logic to plan and generate test cases that validate standard execution and unexpected failure conditions.