From 43a2746d1be9d91ab2fa8fd74c060836e42899cf Mon Sep 17 00:00:00 2001 From: Jaime Wren Date: Tue, 6 Jan 2026 08:16:47 -0800 Subject: [PATCH] Add a code coverage Gradle Plugin to the the Dart IJ plugin. 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. --- third_party/build.gradle.kts | 1 + 1 file changed, 1 insertion(+) diff --git a/third_party/build.gradle.kts b/third_party/build.gradle.kts index ac72cce92..117302817 100644 --- a/third_party/build.gradle.kts +++ b/third_party/build.gradle.kts @@ -20,6 +20,7 @@ plugins { 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" // } // Configure project's dependencies