Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Defines Allra backend test standards: test helpers, Fixture Monkey data generation, Given-When-Then structure, and AssertJ assertions.
36% 95%+59 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 8 of 22 without it.
3 of 3 safety checks passed
47 agent runs
1 forkA fork is a copy of this skill that someone made so they could edit it for their own use. The original doesn't change.
Allra 백엔드 팀의 테스트 작성 표준을 정의합니다. 테스트 헬퍼 선택, Fixture Monkey 데이터 생성, Given-When-Then 패턴, AssertJ 검증을 포함합니다.
이 가이드는 다음 환경을 기준으로 작성되었습니다:
참고: 프로젝트별로 사용하는 라이브러리나 버전이 다를 수 있습니다. 프로젝트에 맞게 조정하여 사용하세요.
주의: 아래 테스트 헬퍼는 Allra 표준 템플릿에서 제공됩니다. 프로젝트에 이러한 헬퍼가 없는 경우, Spring Boot 기본 테스트 어노테이션(@SpringBootTest, @DataJpaTest, @WebMvcTest 등)을 직접 사용하되, 이 가이드의 테스트 패턴과 원칙은 동일하게 적용합니다.
| 헬퍼 | 태그 | 용도 | 무게 | 언제? |
|---|---|---|---|---|
| IntegrationTest | Integration | 여러 서비스 통합 | 🔴 무거움 | 전체 워크플로우 |
| RdbTest | RDB | Repository, QueryDSL | 🟡 중간 | 쿼리 검증 |
| ControllerTest | Controller | API 엔드포인트 | 🟢 가벼움 | REST API 검증 |
| RedisTest | Redis | Redis 캐싱 | 🟢 가벼움 | 캐시 검증 |
| MockingUnitTest | MockingUnit | Service 단위 | 🟢 매우 가벼움 | 비즈니스 로직 |
| PojoUnitTest | PojoUnit | 도메인 로직 | 🟢 매우 가벼움 | 순수 자바 |
API 엔드포인트? → ControllerTest
여러 서비스 통합? → IntegrationTest
Repository/QueryDSL? → RdbTest
Redis 캐싱? → RedisTest
Service 로직 (Mock)? → MockingUnitTest
도메인 로직 (POJO)? → PojoUnitTest
Next to this one in the catalogue, plus more from the same author.