‘테스트 더블’에 따르면 스텁이나 목을 데이터베이스로 사용할 수 있다) 같은 것들은 사용하지
않을 것이다. 그리고 다음 시험 단계에서는 애플리케이션 서버를 데이터베이스 서버 등의 인프
라 요소와 연동하여 시험할 수 있다.
여러 단계를 거치면서 시험할 인프라와 시스템의 범위를 점진적으로 넓혀야 한다. 이는 [그림
12
-
2
]처럼 시험 피라미드를 따른다.
그림
12
-
2
시험피라미드와파이프라인의관계
빌드 &
단위 시험
자동 서비스
인프라 시험
자동 종단 간
시험
종단 간 시험
서비스 시험
단위 시험
시험 피라미드를 따르는 방식으로 시험 범위를 넓히면 몇 가지 장점을 얻을 수 있다. 첫 번째로
빠른 피드백을 받을 수 있다는 점이다. 일반적으로 시험 범위가 더 넓어지면 설정할 것이 더 많
아져 실행하는 데 더 오랜 시간이 걸린다.
따라서 이른 시점에 더 빨리 실행되는 시험이 실패하면, 파이프라인은 오랜 시간이 걸리는 시
험을 먼저 실행할 때보다 오류에 대한 피드백을 더 빨리 줄 수 있다.
두 번째로 좁은 범위의 시험에서 실패의 원인을 찾는 게 더 쉽다는 점이다. 넓은 범위의 시험이
실패하면 실패의 원인이 될 수 있는 요소가 더 많아진다. 그런데 앞서 설명한 예처럼 애플리케
이션 서버를 독립적으로 시험하는 단계가 통과하면, 애플리케이션 서버 자체는 올바로 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.