test-api

Generate Java test fixtures, mapper tests, and RestDocs for REST API modules.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/ryu-qqq/conventionHub --skill test-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-api
Source: https://github.com/ryu-qqq/conventionHub/tree/main/.claude/skills/test-api
Command: npx skills add https://github.com/ryu-qqq/conventionHub --skill test-api

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the creation of test fixtures, mapper tests, and RestDocs for REST API modules, reducing manual boilerplate and ensuring consistency across services.

Core Features & Use Cases

  • Automated testFixtures for Domain APIs (e.g., DomainApiFixtures.java)
  • Mapper tests (QueryApiMapperTest, CommandApiMapperTest)
  • RestDocs-based controller tests (QueryControllerRestDocsTest, CommandControllerRestDocsTest)
  • Works for rest-api and rest-api-admin modules and their typical domain packages

Quick Start

Use the test-api skill to generate tests for the rest-api-admin module and its domain packages.

Frequently Asked Questions about test-api

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

FAQPage Schema
How do I auto-generate REST API test fixtures and RestDocs for Java modules?

To auto-generate REST API test fixtures and RestDocs, this skill produces DomainApiFixtures.java, QueryApiMapperTest, CommandApiMapperTest, and controller RestDocs tests based on your project's domain package structure. It automates test creation for rest-api and rest-api-admin modules to reduce manual boilerplate.

What is the best way to create mapper tests for REST API domain packages?

Creating mapper tests for REST API domain packages is automated by generating QueryApiMapperTest and CommandApiMapperTest artifacts. The skill scans your domain packages within rest-api and rest-api-admin modules to produce these Java test files, ensuring consistent mapper test coverage across services without manual boilerplate.

Can I generate RestDocs controller tests for both rest-api and rest-api-admin modules?

Generating RestDocs controller tests for both rest-api and rest-api-admin modules is fully supported. The skill produces QueryControllerRestDocsTest and CommandControllerRestDocsTest Java artifacts, applying the project's package structure to ensure the documentation tests match your existing domain package layout.

Does this test generation skill work with my existing Java REST API package structure?

Working with your existing Java REST API package structure is required, as the skill applies to domain packages within rest-api and rest-api-admin modules. It uses your project's package structure to accurately place the generated DomainApiFixtures.java, mapper tests, and RestDocs controller tests.

Why do I need to generate DomainApiFixtures for my REST API modules?

Generating DomainApiFixtures for REST API modules is needed to reduce manual boilerplate and ensure consistency across services. The skill automates the creation of these test fixtures along with mapper and RestDocs tests, producing Java test artifacts that maintain uniform test data setup throughout the project.