Contact Person

퐁당풍당

Mobile Developer Share

관리자 글쓰기 로그인

Mobile Developer Share

    카테고리

    • APP (25)
      • Android (11)
        • Develop (9)
        • Error (2)
      • IOS (9)
        • Develop (9)
        • Error (0)
      • - (2)
    Android/Develop

    Android UnitTest를 위한 준비

    : 퐁당풍당
    : 2017. 5. 16. 15:04

    프로젝트별 내용은 상이하지만 대충 방법에 대해 기록하려합니다. 

    (작성중)


    1. build.gradle 속성 편집

    testCompile 'junit:junit:4.12'
    // Espresso core
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
    })
    androidTestCompile('com.android.support.test:runner:0.5', {
    exclude group: 'com.android.support', module: 'support-annotations'
    })
    androidTestCompile('com.android.support.test:rules:0.5', {
    exclude group: 'com.android.support', module: 'support-annotations'
    })
    // Espresso-intents for validation and stubbing of Intents
    androidTestCompile('com.android.support.test.espresso:espresso-intents:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
    })
    // Espresso-web for WebView support
    androidTestCompile('com.android.support.test.espresso:espresso-web:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
    })
    // Espresso-idling-resource for synchronization with background jobs
    androidTestCompile('com.android.support.test.espresso:espresso-idling-resource:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
    })
    // UiAutomator
    androidTestCompile('com.android.support.test.uiautomator:uiautomator-v18:2.1.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
    })
    // Espresso-contrib for DatePicker, RecyclerView, Drawer actions, Accessibility checks, CountingIdlingResource
    androidTestCompile('com.android.support.test.espresso:espresso-contrib:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
    exclude group: 'com.android.support', module: 'appcompat-v7'
    exclude group: 'com.android.support', module: 'support-v4'
    exclude group: 'com.android.support', module: 'recyclerview-v7'
    exclude group: 'com.android.support', module: 'design'
    })


    해당 내용 추가하여 빌드 관련 라이브러리를 추가합니다.



    'Android > Develop' 카테고리의 다른 글

    RXJava, RxAndroid 시작!  (0) 2017.08.24
    모바일 웹 성능 관련 이슈 확인 및 검토 사항  (0) 2017.05.22
    갤럭시s8 , G6 리소스 대응!  (2) 2017.05.17
    금액 형태 변환 코드 줄이기  (0) 2017.05.16
    이모티콘(emoji) MySQL charset 문제..  (0) 2017.05.16
    퍼가기
    최근에 올라온 글
    RECENT POSTS
    최근에 달린 댓글
    RECENT COMMENTS
    LINK
    -
    방문자수
    COUNTER
    Today
    Yesterday
    Total
    퐁당풍당’s Blog is powered by / Designed by UX공작소
    위로가기

    티스토리툴바