동한다고 더욱 확신하게 되지만, 테스트 범위는 여전히 어느 정도 격리돼 있다. 테스트 실패의
원인은 테스트 중인 마이크로서비스로 제한돼야 한다. 이와 같이 격리하려면 [그림
9
-
5
]와 같
이 마이크로서비스 자체만 범위에 포함되도록 외부 협업자를 모두 쳐내야 한다.
웹 쇼핑
서비스 테스트 범위
스텁 협업자
고객
스텁 멤버십
마이크로서비스
헬프데스크
그림
9-5
예제 시스템에서 서비스 테스트 범위 예제 시스템에서 서비스 테스트 범위
이러한 테스트 중 일부는 작은 범위의 단위 테스트만큼 빠를 수 있지만, 실제 데이터베이스에
대해 테스트하거나 네트워크를 통해 스텁
stub
다운스트림 협업자와 통신하기로 결정한다면 테
스트 시간은 늘어날 수 있다. 또한 이 테스트는 단순한 단위 테스트보다 더 넓은 범위를 다루므
로 실패할 경우 단위 테스트보다 문제가 있는 부분을 감지하기가 더 어려워진다. 하지만 동작
구성 요소가 훨씬 적으므로 더 광범위한 테스트보다 취성(깨지기 쉬운 성질)이 낮다.
9.2.39.2.3
엔드투엔드 테스트엔드투엔드 테스트
엔드투엔드 테스트는 시스템 전체에 대해 수행한다. 종종 브라우저를 통해
GUI
를 구동하지만
파일 업로드와 같은 다른 ...
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.