forked from reteno-com/reteno-mobile-android-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_dependencies.gradle
62 lines (49 loc) · 1.74 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
def dependencyGroup(Closure closure) {
closure.delegate = dependencies
return closure
}
/******* Modules Dependencies *******/
ext.testDependencies = dependencyGroup {
junit()
mockk()
powermock()
robolectric()
androidx()
json()
workManager()
testImplementation 'com.google.firebase:firebase-messaging-ktx:23.1.0'
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.4'
}
/******* Dependency groups *******/
// Dependencies used for unit tests.
ext.junit = dependencyGroup {
testImplementation 'junit:junit:4.13.2'
}
ext.mockk = dependencyGroup {
testImplementation "io.mockk:mockk:1.13.2"
}
ext.powermock = dependencyGroup {
def powermockVersion = '1.6.5'
testImplementation "org.powermock:powermock-module-junit4:$powermockVersion"
testImplementation "org.powermock:powermock-module-junit4-rule:$powermockVersion"
testImplementation "org.powermock:powermock-api-mockito:$powermockVersion"
testImplementation "org.powermock:powermock-classloading-xstream:$powermockVersion"
}
ext.robolectric = dependencyGroup {
testImplementation('org.robolectric:robolectric:4.8.1') {
exclude group: 'commons-logging', module: 'commons-logging'
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}
testImplementation 'org.robolectric:shadows-play-services:3.3.2'
testImplementation 'androidx.fragment:fragment-testing:1.5.5'
}
ext.androidx = dependencyGroup {
testImplementation 'androidx.test:core:1.4.0'
testImplementation 'androidx.arch.core:core-testing:2.1.0'
}
ext.json = dependencyGroup {
testImplementation 'org.json:json:20180813'
}
ext.workManager = dependencyGroup {
testImplementation 'androidx.work:work-testing:2.8.1'
}