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:
committed by
Abel García de Prada
parent
d0a710e31b
commit
cba63c060f
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user