단위 테스트가 성공적인 경우에도 실제 환경에서 모든 기능이 제대로 작동하는지 확인해야 한다.
본 글에서는 인증 서비스의 전반적인 기능을 보장하기 위해 단순한 단위 테스트 대신, 종단 간 테스트의 중요성을 강조하고 있다. 이를 위해 Playwright를 사용하여 신규 테넌트의 생성부터 삭제까지의 과정을 실험하는 하나의 테스트를 구축하였다. 이 테스트는 다양한 기능을 실질적으로 검증하며, 고객이 사용하는 다양한 조합의 작동을 확인한다. 따라서 특정 기능이 단독으로 작동해도 전체 시스템의 불완전성을 보장하지 않음을 경고한다.
Passing unit tests doesn’t guarantee all features work properly in a real environment.
This article emphasizes the importance of end-to-end testing over simple unit tests for ensuring the overall functionality of an authentication service. A single Playwright test walks through the entire lifecycle of a newly created tenant, from sign-up to deletion. This test methodically validates various features in a realistic scenario, as customers often use combinations of functionalities. Hence, it warns that a feature might work in isolation but could still lead to issues within the complete system.