forked from hidroh/materialistic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
robolectric.gradle
35 lines (32 loc) · 1.03 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
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
excludes = ['jdk.internal.*']
}
reports {
html.enabled = true
junitXml.enabled = false
}
include "**/*Test.class"
systemProperty 'robolectric.buildDir', buildDir
}
includeAndroidResources = true
}
ext {
assertjVersion = '1.2.0'
robolectricVersion = '4.6.1'
}
dependencies {
testImplementation "org.robolectric:robolectric:$robolectricVersion",
'org.mockito:mockito-core:2.28.2',
'junit:junit:4.12',
"com.squareup.assertj:assertj-android:$assertjVersion"
}