Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 6bdb2ba

Browse files
theScrabiabelgardep
authored andcommitted
add support for tests
1 parent 9f1c20b commit 6bdb2ba

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
android.enableJetifier=true
22
android.useAndroidX=true
3-
org.gradle.jvmargs=-Xmx1536M
3+
org.gradle.jvmargs=-Xmx1536M
4+
android.enableUnitTestBinaryResources=true

owncloudComLibrary/build.gradle

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ dependencies {
1414
exclude module: "kotlin-reflect"
1515
}
1616
kapt "com.squareup.moshi:moshi-kotlin-codegen:$moshiVersion"
17+
18+
testImplementation 'junit:junit:4.13'
19+
testImplementation 'org.robolectric:robolectric:4.3'
20+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
21+
androidTestImplementation 'androidx.test:runner:1.3.0'
22+
androidTestImplementation 'androidx.test:core:1.3.0'
23+
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
24+
androidTestImplementation 'androidx.test:rules:1.3.0'
1725
}
1826

1927
android {
@@ -40,4 +48,10 @@ android {
4048
sourceCompatibility JavaVersion.VERSION_1_8
4149
targetCompatibility JavaVersion.VERSION_1_8
4250
}
51+
52+
testOptions {
53+
unitTests {
54+
includeAndroidResources = true
55+
}
56+
}
4357
}

0 commit comments

Comments
 (0)