-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_dependencies.gradle
73 lines (63 loc) · 2.45 KB
/
test_dependencies.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// Dependencies which are used across all modules and should be shared by using
// apply: ../shared_dependencies.gradle in each module's build file.
android {
// Include Android resources for robolectric unit testing.
testOptions {
unitTests {
includeAndroidResources = true
}
}
// Show test results in CLI. Helpful for reading CI test outputs or when
// running tests from the command line.
testOptions.unitTests.all {
testLogging {
events 'passed', 'skipped', 'failed', 'standardOut', 'standardError'
}
}
}
dependencies {
testImplementation project(':test_common')
// Unit tests
testImplementation Libs.junit
testImplementation Libs.mockito
testImplementation Libs.mockitoInline
testImplementation Libs.hamcrest
testImplementation Libs.archCoreTesting
testImplementation Libs.kotlinCoroutinesTest
testImplementation Libs.kotlinCoroutinesAndroid
testImplementation Libs.robolectric
testImplementation Libs.espresso
testImplementation Libs.espressoContrib
testImplementation Libs.espressoIntents
testImplementation Libs.truth
testImplementation Libs.koinTest
testImplementation Libs.okhttp3MockWebServer
// AndroidX JVM tests
testImplementation Libs.testCoreKtx
testImplementation Libs.junitKtx
testImplementation Libs.testRules
testImplementation Libs.fragment
testImplementation Libs.fragmentTesting
debugImplementation Libs.testCoreKtx
debugImplementation Libs.fragmentTesting
// Android Unit tests
androidTestImplementation Libs.junit
androidTestImplementation Libs.mockito
androidTestImplementation Libs.mockitoInline
// Instrumented tests
androidTestImplementation Libs.testCoreKtx
androidTestImplementation Libs.junitKtx
androidTestImplementation Libs.testRules
androidTestImplementation Libs.kotlinCoroutinesTest
androidTestImplementation Libs.kotlinCoroutinesAndroid
androidTestImplementation Libs.roomTesting
androidTestImplementation Libs.archCoreTesting
androidTestImplementation Libs.espresso
androidTestImplementation Libs.espressoContrib
androidTestImplementation Libs.espressoIntents
debugImplementation Libs.espressoIdlingResource
androidTestImplementation Libs.espressoIdlingConcurrent
androidTestImplementation Libs.robolectricAnnotations
androidTestImplementation Libs.appCompat
androidTestImplementation Libs.material
}