올클 테스트 작성 가이드 (v3 - 데이터 기반)

Classify backend testing requests and enforce AssertJ and async verification conventions.

26|1|Updated Jan 8, 2025
One-click install
npx skills add https://github.com/allcll/allcll-backend --skill v3
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 올클 테스트 작성 가이드 (v3 - 데이터 기반)
Source: https://github.com/allcll/allcll-backend/tree/main/docs/agent-harness/skills/testing
Command: npx skills add https://github.com/allcll/allcll-backend --skill v3

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you classify backend testing requests correctly before writing code, so you avoid unsafe assumptions, wrong test types, and brittle mock-based tests.

Core Features & Use Cases

  • Test classification: Distinguish between simple utility tests, Spring Boot integration tests, domain-format checks, and cases that require human judgment.
  • Testing guardrails: Follow project-specific conventions for AssertJ, MockitoBean, fixtures, async verification, and prohibited annotations.
  • Use case: When asked to test a service, parser, fetcher, or scheduler, use this Skill to decide whether to write the test, inspect call sites first, or stop and escalate.

Quick Start

Apply the skill to the target class or package, classify the test request using the documented rules, and then write only the test type that the repository conventions and risk level allow.

Frequently Asked Questions about 올클 테스트 작성 가이드 (v3 - 데이터 기반)

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

FAQPage Schema
How do I classify backend testing requests for Spring Boot services?

Backend testing requests are classified by distinguishing simple utility tests, Spring Boot integration tests, domain-format checks, and cases requiring human judgment. This classification prevents unsafe assumptions and ensures correct test type selection before writing code.

When should I avoid using mocks for integration tests in a backend project?

Avoid mocks for integration tests when verifying external-response or policy-driven behavior, as these represent red-line restrictions. Inspect call sites first or escalate the decision instead of writing brittle mock-based tests that violate repository-specific conventions.

Does AssertJ work with MockitoBean for async verification in backend tests?

AssertJ works with MockitoBean to enforce project-specific testing conventions, including async verification patterns. This combination ensures safe, data-grounded test authoring while maintaining repository-specific fixture usage and prohibited annotation restrictions.

What is the best way to test fetchers and schedulers without brittle mocks?

The best way to test fetchers and schedulers is to classify the test request using documented rules, inspect call sites, and apply repository-specific conventions. Only write test types that risk levels allow, stopping to escalate when human judgment is required.

How do I write safe integration tests for domain-format checks in Spring Boot?

Safe integration tests for domain-format checks require applying repository-specific conventions for AssertJ and fixtures. Classify the scenario first, then write only the allowed test type while enforcing async verification patterns and red-line restrictions.

Why does my backend test classification fail when testing external API responses?

Backend test classification fails on external API responses because policy-driven behavior represents a red-line restriction. The testing guardrails require you to stop and escalate these cases rather than making unsafe assumptions about external-response behavior.