Skip to content

Conversation

@jwren
Copy link
Member

@jwren jwren commented Jan 6, 2026

See https://plugins.gradle.org/plugin/org.jetbrains.kotlinx.kover

Kover is a Gradle plugin developed by JetBrains for measuring code coverage in Kotlin and Java projects. It integrates with the IntelliJ coverage engine (and others) to produce XML and HTML reports.

Usage
Generate Report: ./gradlew koverHtmlReport
Skip Tests (if already run): ./gradlew koverHtmlReport -x test Report Location: build/reports/kover/html/index.html I ran ./gradlew koverHtmlReport -x test successfully. Coverage: Confirmed ~49.8% line coverage, 48.2$ instruction coverage.

See https://plugins.gradle.org/plugin/org.jetbrains.kotlinx.kover

Kover is a Gradle plugin developed by JetBrains for measuring code coverage in Kotlin and Java projects. It integrates with the IntelliJ coverage engine (and others) to produce XML and HTML reports.

Usage
Generate Report: ./gradlew koverHtmlReport
Skip Tests (if already run): ./gradlew koverHtmlReport -x test
Report Location: build/reports/kover/html/index.html
I ran ./gradlew koverHtmlReport -x test successfully. Coverage: Confirmed ~49.8% line coverage, 48.2$ instruction coverage.
@jwren jwren requested review from helin24 and pq January 6, 2026 16:20
id("org.jetbrains.kotlin.jvm") version "2.3.0" // Kotlin support
id("org.jetbrains.intellij.platform") version "2.10.5" // IntelliJ Platform Gradle Plugin
id("org.jetbrains.changelog") version "2.2.0" // Gradle Changelog Plugin
id("org.jetbrains.kotlinx.kover") version "0.9.4" //
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add comment at the end

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, thanks

@pq
Copy link
Collaborator

pq commented Jan 6, 2026

Awesome!

Will these results get added to the build artifacts and generated as part of a regular build workflow?

It'd be cool to get this as neatly integrated into the continuous build as we can.

@jwren
Copy link
Member Author

jwren commented Jan 6, 2026

Awesome!

Will these results get added to the build artifacts and generated as part of a regular build workflow?

It'd be cool to get this as neatly integrated into the continuous build as we can.

We could, not with this PR though. We could do whatever we want, for instance, we could have a presubmit that enforces code coverage with added or modified code.

@jwren jwren merged commit c71a059 into flutter:main Jan 7, 2026
9 of 10 checks passed
jwren added a commit to jwren/flutter-intellij that referenced this pull request Jan 7, 2026
jwren added a commit to flutter/flutter-intellij that referenced this pull request Jan 8, 2026
See https://plugins.gradle.org/plugin/org.jetbrains.kotlinx.kover

Kover is a Gradle plugin developed by JetBrains for measuring code
coverage in Kotlin and Java projects. It integrates with the IntelliJ
coverage engine (and others) to produce XML and HTML reports.

Coverage: 11.5212%

See flutter/dart-intellij-third-party#190
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants