unit-test-author

Generate unit test plans and example tests across multiple frameworks.

3|2|Updated Jun 9, 2026
One-click install
npx skills add https://github.com/JayRHa/AgentSkills --skill unit-test-author-jayrha
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unit-test-author
Source: https://github.com/JayRHa/AgentSkills/tree/main/unit-test-author
Command: npx skills add https://github.com/JayRHa/AgentSkills --skill unit-test-author-jayrha

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams design and implement high-quality unit tests that verify behavior, cover edge cases, and reduce brittleness across languages and frameworks.

Core Features & Use Cases

  • Guidance on identifying the unit under test, selecting conventions for the target language, and enumerating edge cases.
  • Support for table-driven / parametrized test patterns, AAA structure, and robust naming conventions to improve maintainability.
  • Cross-language coverage guidance across pytest, Jest/Vitest, Go testing, JUnit, RSpec, xUnit, and Rust, with examples and templates.

Quick Start

Provide a ready-to-run unit test plan and example tests for the target function or module across languages.

Frequently Asked Questions about unit-test-author

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

FAQPage Schema
How do I write unit tests that cover edge cases across different frameworks?

To write unit tests covering edge cases, identify the unit under test, enumerate edge cases, and apply table-driven patterns or parametrized tests. This approach works across pytest, Jest, Go testing, JUnit, RSpec, xUnit, and Rust.

What is the best way to structure maintainable unit tests?

The best way to structure maintainable unit tests is using the AAA (Arrange-Act-Assert) pattern alongside robust naming conventions. This ensures tests verify behavior clearly and reduces brittleness across languages.

Does this approach support table-driven testing in Go and pytest?

Yes, table-driven testing and parametrized patterns are explicitly supported for Go testing and pytest. This allows you to validate multiple inputs against expected behaviors deterministically.

How do I plan a mocking strategy for deterministic tests?

To plan a mocking strategy for deterministic tests, identify external dependencies within your unit under test and replace them with controlled mocks. This isolates behavior and prevents flaky test execution.

Can I use table-driven tests with Jest and Vitest?

Yes, you can generate table-driven and parametrized unit tests for Jest and Vitest. The process involves enumerating edge cases into a data table and iterating over them to assert expected outcomes.