File tree Expand file tree Collapse file tree 2 files changed +46
-45
lines changed Expand file tree Collapse file tree 2 files changed +46
-45
lines changed Original file line number Diff line number Diff line change @@ -8,53 +8,54 @@ static String resolveProjectVariantForCodeCoverage(Project project) {
8
8
9
9
allprojects {
10
10
pluginManager. withPlugin(" org.jetbrains.kotlinx.kover" ) {
11
- if (project. plugins. hasPlugin(" com.android.library" ) || project. plugins. hasPlugin(" com.android.application" )) {
12
- koverReport {
13
- defaults {
14
- mergeWith(resolveProjectVariantForCodeCoverage(project))
11
+ kover {
12
+ if (project. plugins. hasPlugin(" com.android.library" ) || project. plugins. hasPlugin(" com.android.application" )) {
13
+ currentProject {
14
+ createVariant(" custom" ) {
15
+ addWithDependencies([resolveProjectVariantForCodeCoverage(project)] as String [], false )
16
+ }
15
17
}
16
18
}
17
- }
18
-
19
- koverReport {
20
- filters {
21
- excludes {
22
- packages(
23
- ' com.bumptech.glide' ,
24
- ' dagger.*' ,
25
- ' *.compose*' ,
26
- ' *.debug*' ,
27
- ' hilt_aggregated_deps' ,
28
- ' *.databinding' ,
29
- ' org.wordpress.android.modules' ,
30
- ' org.wordpress.android.widgets' ,
31
- )
32
19
33
- classes(
34
- ' *_Factory*' ,
35
- ' *Activity' ,
36
- ' *Activity$*' ,
37
- ' *Adapter' ,
38
- ' *Adapter$*' ,
39
- ' *BuildConfig' ,
40
- ' *DiffCallback*' ,
41
- ' *Dialog' ,
42
- ' *Dialog$*' ,
43
- ' *Fragment' ,
44
- ' *Fragment$*' ,
45
- ' *FragmentDirections*' ,
46
- ' *FragmentKt*' ,
47
- ' *Module' ,
48
- ' *Module_*' ,
49
- ' *View' ,
50
- ' *View$*' ,
51
- ' *ViewHolder' ,
52
- ' *ViewHolder$*' ,
53
- ' *ViewHolderKt*' ,
54
- ' *.Hilt_*' ,
55
- ' *HiltModules*' ,
56
- ' *_MembersInjector' ,
57
- )
20
+ reports {
21
+ filters {
22
+ excludes {
23
+ classes(
24
+ // Package exclusions - converted to class patterns
25
+ ' com.bumptech.glide.*' ,
26
+ ' dagger.*' ,
27
+ ' *.compose*' ,
28
+ ' *.debug*' ,
29
+ ' hilt_aggregated_deps.*' ,
30
+ ' *.databinding.*' ,
31
+ ' org.wordpress.android.modules.*' ,
32
+ ' org.wordpress.android.widgets.*' ,
33
+ // Class pattern exclusions
34
+ ' *_Factory*' ,
35
+ ' *Activity' ,
36
+ ' *Activity$*' ,
37
+ ' *Adapter' ,
38
+ ' *Adapter$*' ,
39
+ ' *BuildConfig' ,
40
+ ' *DiffCallback*' ,
41
+ ' *Dialog' ,
42
+ ' *Dialog$*' ,
43
+ ' *Fragment' ,
44
+ ' *Fragment$*' ,
45
+ ' *FragmentDirections*' ,
46
+ ' *FragmentKt*' ,
47
+ ' *Module' ,
48
+ ' *Module_*' ,
49
+ ' *View' ,
50
+ ' *View$*' ,
51
+ ' *ViewHolder' ,
52
+ ' *ViewHolder$*' ,
53
+ ' *ViewHolderKt*' ,
54
+ ' *.Hilt_*' ,
55
+ ' *HiltModules*' ,
56
+ ' *_MembersInjector' ,
57
+ )
58
+ }
58
59
}
59
60
}
60
61
}
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ junit = '4.13.2'
85
85
kotlin-compile-testing = ' 1.6.0'
86
86
kotlin-main = ' 2.2.10'
87
87
kotlinx-coroutines = ' 1.10.2'
88
- kotlinx-kover = ' 0.7.6 '
88
+ kotlinx-kover = ' 0.9.2 '
89
89
ksp = ' 2.2.10-2.0.2'
90
90
mockito-android = ' 5.20.0'
91
91
mockito-kotlin = ' 6.0.0'
You can’t perform that action at this time.
0 commit comments