forked from hidroh/materialistic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrobolectric.gradle
42 lines (40 loc) · 1.67 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
37
38
39
40
41
42
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 = 4
testLogging {
events 'passed', 'skipped', 'failed', 'standardOut', 'standardError'
exceptionFormat 'full'
}
jacoco {
includeNoLocationClasses = true
}
reports {
html.enabled = false
junitXml.enabled = false
}
include rootProject.hasProperty("testSuite") ? "**/${rootProject.ext.testSuite}.class" : "**/*Test.class"
systemProperty 'robolectric.buildDir', buildDir
}
ext {
assertjVersion = '1.1.1'
robolectricVersion = '3.2'
}
dependencies {
testCompile "org.robolectric:robolectric:$robolectricVersion",
"org.robolectric:shadows-support-v4:$robolectricVersion",
'org.mockito:mockito-core:2.1.0',
'junit:junit:4.12',
'io.takari.junit:takari-cpsuite:1.2.7'
testCompile("com.squareup.assertj:assertj-android:$assertjVersion") {
exclude group: 'com.android.support', module: 'support-annotations'
}
testCompile("com.squareup.assertj:assertj-android-support-v4:$assertjVersion") {
exclude group: 'com.android.support', module: 'support-annotations'
exclude group: 'com.android.support', module: 'support-v4' // see robolectric/robolectric#1633
}
testCompile("com.squareup.assertj:assertj-android-appcompat-v7:$assertjVersion") {
exclude group: 'com.android.support', module: 'support-annotations'
exclude group: 'com.android.support', module: 'appcompat-v7' // see robolectric/robolectric#1633
}
}