사용자 도구

사이트 도구


intellij_idea:unittest

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
마지막 판 양쪽 다음 판
intellij_idea:unittest [2015/07/23 10:34]
kwon37xi
intellij_idea:unittest [2018/08/06 17:04]
kwon37xi [고속 단위 테스트 설정]
줄 3: 줄 3:
 ===== Branch Coverage 측정 ===== ===== Branch Coverage 측정 =====
   * **Run/Debug Configurations -> Defaults -> JUnit -> Code Coverage**에서 다음 상태로 설정한 뒤에 테스트를 수행하면 된다.   * **Run/Debug Configurations -> Defaults -> JUnit -> Code Coverage**에서 다음 상태로 설정한 뒤에 테스트를 수행하면 된다.
-    * Choose coverage Runner : IntelliJ IDEA +    * Choose coverage Runner : **IntelliJ IDEA** 
-    * check Tracing +    * check **Tracing** 
-      * check Track per test coverage+      * check **Track per test coverage**
   * **Run With Coverage**로 테스트를 실행하면 다음과 같이 어느 조건이 히트했고 안했는지를 코드 상에서 볼 수 있다.   * **Run With Coverage**로 테스트를 실행하면 다음과 같이 어느 조건이 히트했고 안했는지를 코드 상에서 볼 수 있다.
     {{:intellij_idea:intellij_branch_coverage_show.png|}}     {{:intellij_idea:intellij_branch_coverage_show.png|}}
  
-===== 고속 단위 테스트 설정 =====+===== 고속 단위 테스트 설정 : 하지 말 것 =====
   * [[http://plugins.jetbrains.com/plugin/?id=3822|Eclipse Mode]] 플러그인을 설치하고, 설정에서 **Enable incremental compilation on Save**를 체크한다.   * [[http://plugins.jetbrains.com/plugin/?id=3822|Eclipse Mode]] 플러그인을 설치하고, 설정에서 **Enable incremental compilation on Save**를 체크한다.
     * 혹시 이로인해 문제가 생기면 [[http://www.stitchy.org/?p=107|IntelliJ IDEA 12 and Incremental Builds | Stitchy]] 참조.     * 혹시 이로인해 문제가 생기면 [[http://www.stitchy.org/?p=107|IntelliJ IDEA 12 and Incremental Builds | Stitchy]] 참조.
intellij_idea/unittest.txt · 마지막으로 수정됨: 2018/08/06 17:07 저자 kwon37xi