단위 테스트 (Unit Testing)
소스 코드의 개별 단위를 테스트하여 사용 적합성을 판단합니다.
단위 테스트는 소프트웨어 테스트의 기본적인 수준입니다. 주요 목표는 프로그램의 각 부분(함수, 메서드)을 격리하고 개별 부분이 올바름을 증명하는 것입니다. 일반적으로 개발자가 작성합니다. 리팩토링을 용이하게 하고 개발 주기 초기에 버그를 감지하는 데 도움이 됩니다. 종종 CI 파이프라인에서 자동화됩니다.
graph LR
Center["단위 테스트 (Unit Testing)"]:::main
Rel_integration_testing["integration-testing"]:::related -.-> Center
click Rel_integration_testing "/terms/integration-testing"
Rel_continuous_integration["continuous-integration"]:::related -.-> Center
click Rel_continuous_integration "/terms/continuous-integration"
classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
linkStyle default stroke:#4b5563,stroke-width:2px;
🧒 5살도 이해할 수 있게 설명
Generated ELI5 content
🤓 Expert Deep Dive
Generated expert content
❓ 자주 묻는 질문
What is a unit in unit testing?
A unit is the smallest testable part of an application, such as a function, method, procedure, or object.
Who performs unit testing?
Unit testing is typically performed by software developers during the development phase.
What is the difference between unit testing and integration testing?
Unit testing focuses on individual components in isolation, while integration testing verifies how those components work together.
📚 출처
1. Unit testing