-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrobolectric.gradle
36 lines (34 loc) · 1.28 KB
/
robolectric.gradle
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
29
30
31
32
33
34
35
36
android.testOptions.unitTests {
all {
// full options: https://docs.gradle.org/current/dsl/org.gradle.api.tasks.testing.Test.html
maxHeapSize = rootProject.ext.ci ? "3584m" : "2048m"
forkEvery = rootProject.ext.ci ? 1 : 0
testLogging {
events 'passed', 'skipped', 'failed', 'standardOut', 'standardError'
exceptionFormat 'full'
}
jacoco {
includeNoLocationClasses = true
}
reports {
html.enabled = false
junitXml.enabled = false
}
include "**/*Test.class"
systemProperty 'robolectric.buildDir', buildDir
}
includeAndroidResources = true
}
ext {
assertjVersion = '1.2.0'
}
dependencies {
testImplementation "org.robolectric:robolectric:4.3.1"
testImplementation 'androidx.test.ext:junit:1.1.2'
testImplementation 'org.mockito:mockito-core:3.7.7'
testImplementation 'junit:junit:4.13.1'
testImplementation "com.squareup.assertj:assertj-android:$assertjVersion"
testImplementation "com.squareup.assertj:assertj-android-support-v4:$assertjVersion@aar"
testImplementation "com.squareup.assertj:assertj-android-appcompat-v7:$assertjVersion@aar"
testImplementation "com.android.support:support-media-compat:28.0.0"
}