File tree 4 files changed +34
-4
lines changed
integration/kotlinx-coroutines-slf4j/test
kotlinx-coroutines-reactive
kotlinx-coroutines-reactor
4 files changed +34
-4
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,9 @@ val expectedCoverage = mutableMapOf(
16
16
17
17
// TODO figure it out, these probably should be fixed
18
18
" kotlinx-coroutines-debug" to 84 ,
19
- " kotlinx-coroutines-reactive " to 65 ,
19
+ // Re-evaluate this along with Kover update where deprecated with error+ functions are not considered as uncovered: IDEA-287459
20
20
" kotlinx-coroutines-reactor" to 65 ,
21
- " kotlinx-coroutines-rx2" to 78 ,
22
- " kotlinx-coroutines-slf4j" to 81
21
+ " kotlinx-coroutines-rx2" to 78
23
22
)
24
23
25
24
extensions.configure<KoverExtension > {
@@ -51,4 +50,8 @@ subprojects {
51
50
}
52
51
}
53
52
}
53
+
54
+ tasks.withType<KoverHtmlReportTask > {
55
+ htmlReportDir.set(file(rootProject.buildDir.toString() + " /kover/" + project.name + " /html" ))
56
+ }
54
57
}
Original file line number Diff line number Diff line change @@ -102,9 +102,10 @@ class MDCContextTest : TestBase() {
102
102
val mainDispatcher = kotlin.coroutines.coroutineContext[ContinuationInterceptor ]!!
103
103
withContext(Dispatchers .Default + MDCContext ()) {
104
104
assertEquals(" myValue" , MDC .get(" myKey" ))
105
+ assertEquals(" myValue" , coroutineContext[MDCContext ]?.contextMap?.get(" myKey" ))
105
106
withContext(mainDispatcher) {
106
107
assertEquals(" myValue" , MDC .get(" myKey" ))
107
108
}
108
109
}
109
110
}
110
- }
111
+ }
Original file line number Diff line number Diff line change @@ -34,3 +34,17 @@ tasks.check {
34
34
externalDocumentationLink(
35
35
url = " https://www.reactive-streams.org/reactive-streams-$reactiveStreamsVersion -javadoc/"
36
36
)
37
+
38
+ val commonKoverExcludes = listOf (
39
+ " kotlinx.coroutines.reactive.FlowKt" , // Deprecated
40
+ " kotlinx.coroutines.reactive.FlowKt__MigrationKt" , // Deprecated
41
+ " kotlinx.coroutines.reactive.ConvertKt" // Deprecated
42
+ )
43
+
44
+ tasks.koverHtmlReport {
45
+ excludes = commonKoverExcludes
46
+ }
47
+
48
+ tasks.koverVerify {
49
+ excludes = commonKoverExcludes
50
+ }
Original file line number Diff line number Diff line change @@ -27,3 +27,15 @@ tasks {
27
27
externalDocumentationLink(
28
28
url = " https://projectreactor.io/docs/core/$reactorVersion /api/"
29
29
)
30
+
31
+ val commonKoverExcludes = listOf (
32
+ " kotlinx.coroutines.reactor.FlowKt" // Deprecated
33
+ )
34
+
35
+ tasks.koverHtmlReport {
36
+ excludes = commonKoverExcludes
37
+ }
38
+
39
+ tasks.koverVerify {
40
+ excludes = commonKoverExcludes
41
+ }
You can’t perform that action at this time.
0 commit comments