테스트클래스
-
단위테스트 test case : 이클립스에서 Junit 사용법(+intellij)JAVA/기타 2024. 6. 17. 16:16
▤ 목차" data-ke-type="html">HTML 삽입미리보기할 수 없는 소스✔ 단위 테스트 Junit⌨ 단위 테스트란?유닛테스트라고 한다.단위 테스트는 하나의 모듈(기능 또는 메소드)을 기준으로 독립으로 진행되는 가장 작은 단위의 테스트를 말한다. 하나의 기능이 올바르게 동작하는지 독립적으로 테스트하는 것 통합 테스트는 실제 여러 컴포넌트들 간의 상호작용을 테스트하기 때문에 모든 컴포넌트들이 구동된 상태에서 테스트를 하게 된다. 단위 테스트는 해당 부분만 독립적으로 테스트하기 때문에 리팩토링시 문제 발생 여부를 확인할 수 있다. 장점테스팅에 대한 시간과 비용을 절감할 수 있다.새로운 기능 추가시 테스트가 가능하다.코드에 대한 설명이 될 수 있다.리팩토링 시 문제 발생 여부를 확인하여 안정성을 확보..