Skip to content

Commit ad41241

Browse files
authored
Merge pull request #597 from projects200/chore/room-dao-test-596
[Chore] Room DAO 테스트 기반 추가와 전송 대기 행 쿼리 검증 #596
2 parents b392219 + 1d24f30 commit ad41241

7 files changed

Lines changed: 659 additions & 79 deletions

File tree

data/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ android {
1818
buildConfigField("String", "BASE_URL", "\"https://api.undabang.site/\"") // Release용 URL
1919
}*/
2020
}
21+
22+
// Room 메모리 DB 테스트에 Robolectric이 android 리소스와 Context를 제공합니다
23+
testOptions {
24+
unitTests.isIncludeAndroidResources = true
25+
}
2126
}
2227

2328
// Room 스키마를 파일로 남겨 마이그레이션 검증에 씁니다
@@ -49,6 +54,7 @@ dependencies {
4954
implementation(libs.androidx.datastore.preferences)
5055

5156
testImplementation(libs.androidx.arch.core.testing)
57+
testImplementation(libs.robolectric)
5258

5359
implementation(libs.appauth)
5460

0 commit comments

Comments
 (0)