forked from divkit/divkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiv-tests.gradle
47 lines (41 loc) · 1.69 KB
/
div-tests.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
43
44
45
46
47
apply from: "${project.projectDir}/../div-tests-coverage.gradle"
apply plugin: 'kotlin-android'
android {
defaultConfig {
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
testOptions {
unitTests {
all {
jacoco {
includeNoLocationClasses = true
excludes = ['jdk.internal.*']
}
jvmArgs '-noverify'
testLogging {
events 'passed', 'skipped', 'failed', 'standardOut', 'standardError'
}
// Keep it synced with DivKitGlobalConfigProvider.
systemProperty 'robolectric.looperMode', "LEGACY"
}
includeAndroidResources = true
}
}
}
dependencies {
testImplementation project(path: ':unit-test-common')
testImplementation "androidx.test:core:$versions.androidx.test"
testImplementation("junit:junit:$versions.junit") {
exclude group: "org.hamcrest", module: "hamcrest-core"
}
testImplementation "org.hamcrest:hamcrest-junit:$versions.hamcrestJUnit"
testImplementation "org.mockito:mockito-core:$versions.mockito"
testImplementation "org.mockito.kotlin:mockito-kotlin:$versions.mockitoKotlin"
testImplementation "org.robolectric:robolectric:$versions.robolectric"
testImplementation "org.robolectric:shadows-supportv4:$versions.robolectric"
testImplementation "org.easytesting:fest-reflect:$versions.festReflect"
testImplementation("com.squareup:fest-android:$versions.festAndroid") {
exclude module: "support-v4"
}
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$versions.coroutines"
}