일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- 테스트
- textview
- Dialog
- tabbar
- CustomScrollView
- 안드로이드
- Coroutines
- 계측
- activity
- Flutter
- ScrollView
- binding
- Compose
- intent
- drift
- DART
- Navigation
- appbar
- Button
- Kotlin
- data
- textfield
- 앱바
- viewmodel
- android
- livedata
- TEST
- 앱
- LifeCycle
- scroll
- Today
- Total
목록계측 (3)
Study Record
😶 Compose 이전 환경 설정 class TipUiTest { @get:Rule val composeTestRule = createComposeRule() } 😶 UI 콘텐츠 설정 setContent 안에 UI 구성요소를 호출한다. class TipUiTest { @get:Rule val composeTestRule = createComposeRule() @Test fun calculate_20_percent_tip() { composeTestRule.setContent { TipTimeTheme { TipTimeLayout() } } } } 😶 특정 컴포저블 엑세스하기 onNodeWithText() 메서드로 특정 문자열이 포함된 컴포저블(ex. TextField)을 찾아 performTextInpu..
😶 RecyclerView 테스트 import androidx.test.espresso.Espresso.onView import androidx.test.espresso.assertion.ViewAssertions.matches import androidx.test.espresso.contrib.RecyclerViewActions import androidx.test.espresso.matcher.ViewMatchers.isDisplayed import androidx.test.espresso.matcher.ViewMatchers.withId import androidx.test.espresso.matcher.ViewMatchers.withText onView(withId(R.id.recycler_vie..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/yqkYj/btsnGPBlPsx/JpaJejiPkOp8PUPviKSkyK/img.png)
😶 계측 테스트? Android 개발에서 앱을 만들고 실행 테스트를 할 때 직접 사람이 수동으로 앱을 설치하여 테스트할 수 있지만 개발자가 특정 코드가 적절하게 작동하는지 코드로 자동화된 테스트를 할 수 있다. 자동화된 테스트를 하는 2가지 유형이 있는데 바로, 단위 테스트와 계측 테스트이다. 이 중에서 계측 테스트는 사용자 인터페이스(UI, 화면 테스트) 테스트를 하며 수명주기 및 플랫폼 API 와 서비스에 종속된 앱 일부를 테스트할 수 있다. 직접 테스트할 기기가 필요 없는 단위 테스트와 달리 계측 테스트는 기기가 필요하다. Android 에서 계측 테스트를 실행하면 실제 테스트 코드는 일반 Android 앱과 마찬가지로 자체 테스트 APK 에 빌드된다. 😶 계측 테스트 디렉터리 만들기 계측 테스트는..