unit-test

Generate unit tests with edge cases, mocks, and self-healing failure fixes across multiple test frameworks.

1|Updated Jun 15, 2026
One-click install
npx skills add https://github.com/abdullah72005/skills --skill unit-test-abdullah72005
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unit-test
Source: https://github.com/abdullah72005/skills/tree/main/unit-test/.claude/skills/unit-test
Command: npx skills add https://github.com/abdullah72005/skills --skill unit-test-abdullah72005

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing thorough unit tests is time-consuming, and most projects have large gaps in coverage for edge cases and error paths. This Skill autonomously detects your test framework, finds untested code, generates convention-matching tests, runs them, and fixes failures without manual intervention. ## Core Features & Use Cases - Framework Auto-Detection: Identifies Vitest, Jest, pytest, go test, flutter_test, RSpec, cargo test, JUnit, and more from project configuration files, then adopts existing test conventions. - Prioritized Coverage Analysis: Scans for untested functions and ranks them by priority (business logic and auth first, utilities last), measuring coverage before and after. - Self-Healing Test Loop: Runs generated tests, diagnoses failures as test bugs or app bugs, and fixes them in up to 3 iterations without weakening assertions. - Use Case: Point it at a legacy service layer with zero tests; it generates happy path, edge case, error path, and boundary value tests with proper mocks, then reports the coverage improvement. ## Quick Start Ask the AI to run the unit-test skill on your project or a specific module to generate and execute comprehensive unit tests automatically.

Frequently Asked Questions about unit-test

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

FAQPage Schema
How do I generate unit tests automatically for untested code?

Run the unit-test skill with no arguments to scan the entire project, or pass specific files and modules as arguments. It detects your test framework, finds untested functions, generates tests matching your conventions, and runs them automatically.

Which test frameworks does automated test generation support?

It supports Vitest, Jest, Mocha, pytest, go test, JUnit, RSpec, flutter_test, cargo test, and xUnit/NUnit. The framework is detected from config files like package.json, pytest.ini, go.mod, or pubspec.yaml.

Can generated tests match my existing test conventions?

Yes. The skill reads existing test files to learn file naming, directory structure, import patterns, mock styles, and assertion conventions, then generates new tests that follow the same patterns.

What happens when a generated test fails?

Failures enter a self-healing loop of up to 3 iterations. Each failure is classified as a test bug (wrong import, mock, or assertion) or an app bug (missing validation, logic error), then fixed and re-run without weakening assertions.

Does it mock the function under test?

No. Only external dependencies like databases, HTTP calls, file systems, time, and random generators are mocked. The function under test, pure utilities, and business logic are always tested directly.