-
Notifications
You must be signed in to change notification settings - Fork 45
/
kover.gradle
41 lines (35 loc) · 1.05 KB
/
kover.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
apply plugin: 'org.jetbrains.kotlinx.kover'
def exclude = [
// Presentation
"com.aliasadi.clean.ui.widget.*",
"com.aliasadi.clean.ui.base.*",
"com.aliasadi.clean.ui.feed.usecase.*",
// Data
"com.aliasadi.data.exception.*",
"com.aliasadi.data.mapper.*",
"com.aliasadi.data.entities.*",
"com.aliasadi.data.db.*",
"com.aliasadi.data.util.*",
// DI
"*Hilt_*", "*_Hilt*",
"*_Factory*", "*_*Factory", "*_GeneratedInjector", "*_HiltComponents*",
"dagger.hilt.internal.*",
"*_di_*",
]
def include = [
"com.aliasadi.clean.ui.*ViewModel",
"com.aliasadi.data.*",
//"*usecase*"
]
kover {
reports {
// filters for all report types of all build variants
filters.excludes.androidGeneratedClasses()
filters.excludes.classes(exclude)
filters.includes.classes(include)
}
}
tasks.register("koverTask") {
dependsOn 'koverHtmlReportProdDebug'
description = "Runs kover and generates coverage reports"
}