1
0
mirror of https://github.com/owncloud/android-library.git synced 2026-08-20 12:52:53 +00:00

use robolectric for android tests

This commit is contained in:
Christian Schabesberger
2020-09-24 12:27:25 +02:00
committed by Abel García de Prada
parent d0a710e31b
commit cba63c060f
3 changed files with 17 additions and 0 deletions
+7
View File
@@ -15,6 +15,7 @@ dependencies {
kapt "com.squareup.moshi:moshi-kotlin-codegen:$moshiVersion"
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.robolectric:robolectric:4.3.1'
}
android {
@@ -37,4 +38,10 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
testOptions {
unitTests {
includeAndroidResources = true
}
}
}