test-gen

Generate or improve automated tests with coverage gap reports.

6|1|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/wesleyosantos91/multi-agents --skill test-gen-wesleyosantos91
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-gen
Source: https://github.com/wesleyosantos91/multi-agents/tree/main/devin/.devin/skills/test-gen
Command: npx skills add https://github.com/wesleyosantos91/multi-agents --skill test-gen-wesleyosantos91

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you create or improve automated tests so your code behaves correctly across normal, edge, and error scenarios.

Core Features & Use Cases

  • Covers critical paths: designs tests for happy paths, edge cases, and error/exception cases.
  • Respects existing suites: analyzes current tests to avoid duplicating coverage.
  • Language-idiomatic generation: selects appropriate frameworks and testing patterns per language (e.g., pytest, JUnit 5, table-driven Go tests).
  • Verification-focused output: ensures generated tests are runnable and reports coverage plus remaining gaps.

Quick Start

Ask the skill to generate tests for the provided code and include coverage for happy path, edge cases, and error cases.

Frequently Asked Questions about test-gen

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

FAQPage Schema
How do I generate unit tests that cover edge cases and error flows?

To generate unit tests covering edge cases and error flows, you provide the target codebase and the skill analyzes existing tests to identify coverage gaps, then creates behavior-driven scenarios for happy paths, exceptions, and boundary conditions using appropriate frameworks like pytest or JUnit 5.

Can I use this to add tests to an existing test suite without duplicating coverage?

Yes, you can use this to add tests to an existing suite without duplicating coverage because it analyzes your current tests first to identify remaining gaps, ensuring newly generated scenarios target only uncovered behavior paths.

What is the best way to automatically create mocks and stubs for my test cases?

The best way to automatically create mocks and stubs is to request test generation for your codebase, and the skill produces runnable test cases with the necessary mocks and stubs injected to isolate behavior during happy path and error scenario validation.

Does the generated test code work with different programming languages and testing frameworks?

Yes, the generated test code works with different programming languages by applying language-idiomatic generation, selecting appropriate frameworks and testing patterns per language such as pytest for Python, JUnit 5 for Java, or table-driven tests for Go.

How do I verify that generated tests are runnable and actually improve test coverage?

To verify that generated tests are runnable and improve coverage, the skill executes validation on the produced test cases and reports the resulting coverage metrics alongside any remaining gaps after the test suite runs.

Why should I generate automated tests for error and exception cases instead of just happy paths?

Generating automated tests for error and exception cases instead of just happy paths reduces regressions and raises confidence in behavior by ensuring your code handles unexpected inputs and failure states correctly across critical paths.