-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3232 from Kotlin/version-1.6.1
Version 1.6.1
- Loading branch information
Showing
81 changed files
with
2,646 additions
and
493 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import kotlinx.kover.api.* | ||
import kotlinx.kover.tasks.* | ||
|
||
/* | ||
* Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
apply(plugin = "kover") | ||
|
||
val notCovered = sourceless + internal + unpublished | ||
|
||
val expectedCoverage = mutableMapOf( | ||
// These have lower coverage in general, it can be eventually fixed | ||
"kotlinx-coroutines-swing" to 70, // awaitFrame is not tested | ||
"kotlinx-coroutines-javafx" to 39, // JavaFx is not tested on TC because its graphic subsystem cannot be initialized in headless mode | ||
|
||
// Reactor has lower coverage in general due to various fatal error handling features | ||
"kotlinx-coroutines-reactor" to 75) | ||
|
||
extensions.configure<KoverExtension> { | ||
disabledProjects = notCovered | ||
/* | ||
* Is explicitly enabled on TC in a separate build step. | ||
* Examples: | ||
* ./gradlew :p:check -- doesn't verify coverage | ||
* ./gradlew :p:check -Pkover.enabled=true -- verifies coverage | ||
* ./gradlew :p:koverReport -Pkover.enabled=true -- generates report | ||
*/ | ||
isDisabled = !(properties["kover.enabled"]?.toString()?.toBoolean() ?: false) | ||
// TODO remove when updating Kover to version 0.5.x | ||
intellijEngineVersion.set("1.0.657") | ||
} | ||
|
||
subprojects { | ||
val projectName = name | ||
if (projectName in notCovered) return@subprojects | ||
tasks.withType<KoverVerificationTask> { | ||
rule { | ||
bound { | ||
/* | ||
* 85 is our baseline that we aim to raise to 90+. | ||
* Missing coverage is typically due to bugs in the agent | ||
* (e.g. signatures deprecated with an error are counted), | ||
* sometimes it's various diagnostic `toString` or `catch` for OOMs/VerificationErrors, | ||
* but some places are definitely worth visiting. | ||
*/ | ||
minValue = expectedCoverage[projectName] ?: 85 // COVERED_LINES_PERCENTAGE | ||
} | ||
} | ||
} | ||
|
||
tasks.withType<KoverHtmlReportTask> { | ||
htmlReportDir.set(file(rootProject.buildDir.toString() + "/kover/" + project.name + "/html")) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.