Integration Test
Integration Test
Integration Test
- 모듈 간 상호 작용 및 통합하는 부분에서 수행하는 테스트
- 외부 라이브러리를 사용하거나, DB에 접근하는 등 단위 테스트에서 불가능한 부분을 검증 가능
- 단위 테스트보다 오래 걸리고 복잡하므로 필요한 경우에만 수행
- 유형
- Top-down 방식: 최상위 모듈부터 통합하며 테스트를 진행
- Bottom-up 방식: 최하위 모듈부터 통합하며 테스트를 진행
- 스프링에서는
@SpringBootTest
어노테이션을 클래스 상단에 붙여 통합 테스트를 진행 가능
References
- https://needjarvis.tistory.com/443
- https://miinsun.tistory.com/137
- https://cjwoov.tistory.com/9
- https://tecoble.techcourse.co.kr/post/2021-05-25-unit-test-vs-integration-test-vs-acceptance-test/