├── .github
├── ISSUE_TEMPLATE
│ ├── bug_report.md
│ ├── feature_request.md
│ └── question.md
└── workflows
│ ├── docs.yml
│ └── new-issue.yml
├── .gitignore
├── CHANGELOG.md
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── LICENSE.TXT
├── README.md
├── build-logic
├── build.gradle.kts
├── gradle.properties
├── settings.gradle.kts
└── src
│ └── main
│ └── kotlin
│ └── kotlinx
│ └── kover
│ └── conventions
│ ├── kover-docs-conventions.gradle.kts
│ ├── kover-fat-jar-conventions.gradle.kts
│ ├── kover-publishing-conventions.gradle.kts
│ └── kover-release-conventions.gradle.kts
├── build.gradle.kts
├── docs
├── _config.yml
└── assets
│ └── css
│ └── style.scss
├── gradle.properties
├── gradle
├── libs.versions.toml
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── kover-cli
├── README.md
├── build.gradle.kts
├── docs
│ └── index.md
└── src
│ ├── main
│ └── kotlin
│ │ └── kotlinx
│ │ └── kover
│ │ └── cli
│ │ ├── Main.kt
│ │ ├── commands
│ │ ├── Command.kt
│ │ ├── MergeCommand.kt
│ │ ├── OfflineInstrumentCommand.kt
│ │ ├── ReportCommand.kt
│ │ └── RootCommand.kt
│ │ └── printers
│ │ ├── Commons.kt
│ │ └── TerminalPrinter.kt
│ └── test
│ ├── kotlin
│ └── kotlinx
│ │ └── kover
│ │ └── cli
│ │ ├── md
│ │ ├── MarkDownMain.kt
│ │ └── MarkdownPrinter.kt
│ │ └── tests
│ │ └── SimpleTests.kt
│ └── resources
│ ├── classes
│ └── org
│ │ └── jetbrains
│ │ └── kover
│ │ └── test
│ │ ├── DataClass.class
│ │ └── ExampleClass.class
│ ├── merge
│ ├── test1.ic
│ └── test2.ic
│ ├── sources
│ └── org.jetbrains.kover.test
│ │ ├── DataClass.kt
│ │ └── ExampleClass.kt
│ └── test.ic
├── kover-features-jvm
├── api
│ └── kover-features-jvm.api
├── build.gradle.kts
└── src
│ └── main
│ ├── java
│ └── kotlinx
│ │ └── kover
│ │ └── features
│ │ └── jvm
│ │ ├── KoverFeatures.kt
│ │ ├── KoverLegacyFeatures.kt
│ │ ├── OfflineInstrumenter.kt
│ │ ├── Verification.kt
│ │ └── impl
│ │ ├── ConDySettings.kt
│ │ ├── LegacyVerification.kt
│ │ ├── OfflineInstrumenterImpl.kt
│ │ └── Wildcards.kt
│ └── resources
│ └── kover.version
├── kover-gradle-plugin
├── api
│ └── kover-gradle-plugin.api
├── build.gradle.kts
├── docs
│ ├── aggregated.md
│ ├── development
│ │ └── functionalTests.md
│ ├── html.png
│ ├── index.md
│ └── migrations
│ │ ├── migration-to-0.6.0.md
│ │ ├── migration-to-0.7.0.md
│ │ └── migration-to-0.8.0.md
├── examples
│ ├── android
│ │ ├── dynamic
│ │ │ ├── app
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ │ ├── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ ├── java
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ │ └── kover
│ │ │ │ │ │ │ └── test
│ │ │ │ │ │ │ └── android
│ │ │ │ │ │ │ ├── DebugUtil.kt
│ │ │ │ │ │ │ ├── MainActivity.kt
│ │ │ │ │ │ │ └── Maths.kt
│ │ │ │ │ └── res
│ │ │ │ │ │ ├── layout
│ │ │ │ │ │ └── activity_main.xml
│ │ │ │ │ │ └── values
│ │ │ │ │ │ ├── colors.xml
│ │ │ │ │ │ ├── strings.xml
│ │ │ │ │ │ └── themes.xml
│ │ │ │ │ └── test
│ │ │ │ │ └── java
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── kover
│ │ │ │ │ └── test
│ │ │ │ │ └── android
│ │ │ │ │ └── LocalTests.kt
│ │ │ ├── build.gradle.kts
│ │ │ ├── dyn
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ │ ├── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ └── java
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ └── kover
│ │ │ │ │ │ └── test
│ │ │ │ │ │ └── android
│ │ │ │ │ │ └── dyn
│ │ │ │ │ │ ├── DebugUtil.kt
│ │ │ │ │ │ └── MagicFactory.kt
│ │ │ │ │ └── test
│ │ │ │ │ └── java
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── kover
│ │ │ │ │ └── test
│ │ │ │ │ └── android
│ │ │ │ │ └── LocalLibTests.kt
│ │ │ ├── gradle.properties
│ │ │ └── settings.gradle.kts
│ │ ├── flavors
│ │ │ ├── app
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ │ ├── debug
│ │ │ │ │ └── kotlin
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ └── test
│ │ │ │ │ │ └── android
│ │ │ │ │ │ └── DebugAppClass.kt
│ │ │ │ │ ├── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ ├── java
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ │ └── kover
│ │ │ │ │ │ │ └── test
│ │ │ │ │ │ │ └── android
│ │ │ │ │ │ │ ├── DebugUtil.kt
│ │ │ │ │ │ │ ├── MainActivity.kt
│ │ │ │ │ │ │ └── Maths.kt
│ │ │ │ │ └── res
│ │ │ │ │ │ ├── layout
│ │ │ │ │ │ └── activity_main.xml
│ │ │ │ │ │ └── values
│ │ │ │ │ │ ├── colors.xml
│ │ │ │ │ │ ├── strings.xml
│ │ │ │ │ │ └── themes.xml
│ │ │ │ │ └── test
│ │ │ │ │ └── java
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── kover
│ │ │ │ │ └── test
│ │ │ │ │ └── android
│ │ │ │ │ └── LocalTests.kt
│ │ │ ├── build.gradle.kts
│ │ │ ├── gradle.properties
│ │ │ ├── lib
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ │ ├── debug
│ │ │ │ │ └── kotlin
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ └── test
│ │ │ │ │ │ └── android
│ │ │ │ │ │ └── lib
│ │ │ │ │ │ └── DebugLibClass.kt
│ │ │ │ │ ├── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ └── java
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ └── kover
│ │ │ │ │ │ └── test
│ │ │ │ │ │ └── android
│ │ │ │ │ │ └── lib
│ │ │ │ │ │ ├── DebugUtil.kt
│ │ │ │ │ │ └── MagicFactory.kt
│ │ │ │ │ └── test
│ │ │ │ │ └── java
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── kover
│ │ │ │ │ └── test
│ │ │ │ │ └── android
│ │ │ │ │ └── LocalLibTests.kt
│ │ │ └── settings.gradle.kts
│ │ ├── minimal_groovy
│ │ │ ├── app
│ │ │ │ ├── build.gradle
│ │ │ │ └── src
│ │ │ │ │ ├── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ ├── java
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ │ └── kover
│ │ │ │ │ │ │ └── test
│ │ │ │ │ │ │ └── android
│ │ │ │ │ │ │ ├── DebugUtil.kt
│ │ │ │ │ │ │ ├── MainActivity.kt
│ │ │ │ │ │ │ └── Maths.kt
│ │ │ │ │ └── res
│ │ │ │ │ │ ├── layout
│ │ │ │ │ │ └── activity_main.xml
│ │ │ │ │ │ └── values
│ │ │ │ │ │ ├── colors.xml
│ │ │ │ │ │ ├── strings.xml
│ │ │ │ │ │ └── themes.xml
│ │ │ │ │ └── test
│ │ │ │ │ └── java
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── kover
│ │ │ │ │ └── test
│ │ │ │ │ └── android
│ │ │ │ │ └── LocalTests.kt
│ │ │ ├── build.gradle
│ │ │ ├── gradle.properties
│ │ │ └── settings.gradle
│ │ ├── minimal_kts
│ │ │ ├── app
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ │ ├── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ ├── java
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ │ └── kover
│ │ │ │ │ │ │ └── test
│ │ │ │ │ │ │ └── android
│ │ │ │ │ │ │ ├── DebugUtil.kt
│ │ │ │ │ │ │ ├── MainActivity.kt
│ │ │ │ │ │ │ └── Maths.kt
│ │ │ │ │ └── res
│ │ │ │ │ │ ├── layout
│ │ │ │ │ │ └── activity_main.xml
│ │ │ │ │ │ └── values
│ │ │ │ │ │ ├── colors.xml
│ │ │ │ │ │ ├── strings.xml
│ │ │ │ │ │ └── themes.xml
│ │ │ │ │ └── test
│ │ │ │ │ └── java
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── kover
│ │ │ │ │ └── test
│ │ │ │ │ └── android
│ │ │ │ │ └── LocalTests.kt
│ │ │ ├── build.gradle.kts
│ │ │ ├── gradle.properties
│ │ │ └── settings.gradle.kts
│ │ ├── multiplatform
│ │ │ ├── app
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ │ ├── debug
│ │ │ │ │ └── kotlin
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ └── test
│ │ │ │ │ │ └── android
│ │ │ │ │ │ └── DebugAppClass.kt
│ │ │ │ │ ├── jvmMain
│ │ │ │ │ └── kotlin
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ └── test
│ │ │ │ │ │ └── jvm
│ │ │ │ │ │ └── JvmClass.kt
│ │ │ │ │ ├── jvmTest
│ │ │ │ │ └── kotlin
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ └── test
│ │ │ │ │ │ └── jvm
│ │ │ │ │ │ └── JvmTest.kt
│ │ │ │ │ ├── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ ├── java
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ │ └── kover
│ │ │ │ │ │ │ └── test
│ │ │ │ │ │ │ └── android
│ │ │ │ │ │ │ ├── DebugUtil.kt
│ │ │ │ │ │ │ ├── MainActivity.kt
│ │ │ │ │ │ │ └── Maths.kt
│ │ │ │ │ └── res
│ │ │ │ │ │ ├── layout
│ │ │ │ │ │ └── activity_main.xml
│ │ │ │ │ │ └── values
│ │ │ │ │ │ ├── colors.xml
│ │ │ │ │ │ ├── strings.xml
│ │ │ │ │ │ └── themes.xml
│ │ │ │ │ └── test
│ │ │ │ │ └── java
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── kover
│ │ │ │ │ └── test
│ │ │ │ │ └── android
│ │ │ │ │ └── LocalTests.kt
│ │ │ ├── build.gradle.kts
│ │ │ ├── gradle.properties
│ │ │ ├── lib
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ │ ├── debug
│ │ │ │ │ └── kotlin
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ └── test
│ │ │ │ │ │ └── android
│ │ │ │ │ │ └── lib
│ │ │ │ │ │ └── DebugLibClass.kt
│ │ │ │ │ ├── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ └── java
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ └── kover
│ │ │ │ │ │ └── test
│ │ │ │ │ │ └── android
│ │ │ │ │ │ └── lib
│ │ │ │ │ │ ├── DebugUtil.kt
│ │ │ │ │ │ └── MagicFactory.kt
│ │ │ │ │ └── test
│ │ │ │ │ └── java
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── kover
│ │ │ │ │ └── test
│ │ │ │ │ └── android
│ │ │ │ │ └── LocalLibTests.kt
│ │ │ └── settings.gradle.kts
│ │ ├── multiproject-custom
│ │ │ ├── app
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ │ ├── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ ├── java
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ │ └── kover
│ │ │ │ │ │ │ └── test
│ │ │ │ │ │ │ └── android
│ │ │ │ │ │ │ ├── DebugUtil.kt
│ │ │ │ │ │ │ ├── MainActivity.kt
│ │ │ │ │ │ │ └── Maths.kt
│ │ │ │ │ └── res
│ │ │ │ │ │ ├── layout
│ │ │ │ │ │ └── activity_main.xml
│ │ │ │ │ │ └── values
│ │ │ │ │ │ ├── colors.xml
│ │ │ │ │ │ ├── strings.xml
│ │ │ │ │ │ └── themes.xml
│ │ │ │ │ └── test
│ │ │ │ │ └── java
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── kover
│ │ │ │ │ └── test
│ │ │ │ │ └── android
│ │ │ │ │ └── LocalTests.kt
│ │ │ ├── build.gradle.kts
│ │ │ ├── gradle.properties
│ │ │ ├── lib
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ │ ├── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ └── java
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ └── kover
│ │ │ │ │ │ └── test
│ │ │ │ │ │ └── android
│ │ │ │ │ │ └── lib
│ │ │ │ │ │ ├── DebugUtil.kt
│ │ │ │ │ │ └── MagicFactory.kt
│ │ │ │ │ └── test
│ │ │ │ │ └── java
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── kover
│ │ │ │ │ └── test
│ │ │ │ │ └── android
│ │ │ │ │ └── LocalLibTests.kt
│ │ │ └── settings.gradle.kts
│ │ ├── multiproject
│ │ │ ├── app
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ │ ├── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ ├── java
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ │ └── kover
│ │ │ │ │ │ │ └── test
│ │ │ │ │ │ │ └── android
│ │ │ │ │ │ │ ├── DebugUtil.kt
│ │ │ │ │ │ │ ├── MainActivity.kt
│ │ │ │ │ │ │ └── Maths.kt
│ │ │ │ │ └── res
│ │ │ │ │ │ ├── layout
│ │ │ │ │ │ └── activity_main.xml
│ │ │ │ │ │ └── values
│ │ │ │ │ │ ├── colors.xml
│ │ │ │ │ │ ├── strings.xml
│ │ │ │ │ │ └── themes.xml
│ │ │ │ │ └── test
│ │ │ │ │ └── java
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── kover
│ │ │ │ │ └── test
│ │ │ │ │ └── android
│ │ │ │ │ └── LocalTests.kt
│ │ │ ├── build.gradle.kts
│ │ │ ├── gradle.properties
│ │ │ ├── lib
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ │ ├── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ └── java
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ └── kover
│ │ │ │ │ │ └── test
│ │ │ │ │ │ └── android
│ │ │ │ │ │ └── lib
│ │ │ │ │ │ ├── DebugUtil.kt
│ │ │ │ │ │ └── MagicFactory.kt
│ │ │ │ │ └── test
│ │ │ │ │ └── java
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── kover
│ │ │ │ │ └── test
│ │ │ │ │ └── android
│ │ │ │ │ └── LocalLibTests.kt
│ │ │ └── settings.gradle.kts
│ │ ├── variantUsage
│ │ │ ├── app
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ │ ├── debug
│ │ │ │ │ └── kotlin
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ └── test
│ │ │ │ │ │ └── android
│ │ │ │ │ │ └── DebugAppClass.kt
│ │ │ │ │ ├── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ ├── java
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ │ └── kover
│ │ │ │ │ │ │ └── test
│ │ │ │ │ │ │ └── android
│ │ │ │ │ │ │ ├── DebugUtil.kt
│ │ │ │ │ │ │ ├── MainActivity.kt
│ │ │ │ │ │ │ └── Maths.kt
│ │ │ │ │ └── res
│ │ │ │ │ │ ├── layout
│ │ │ │ │ │ └── activity_main.xml
│ │ │ │ │ │ └── values
│ │ │ │ │ │ ├── colors.xml
│ │ │ │ │ │ ├── strings.xml
│ │ │ │ │ │ └── themes.xml
│ │ │ │ │ └── test
│ │ │ │ │ └── java
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── kover
│ │ │ │ │ └── test
│ │ │ │ │ └── android
│ │ │ │ │ └── LocalTests.kt
│ │ │ ├── build.gradle.kts
│ │ │ ├── gradle.properties
│ │ │ ├── lib
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ │ ├── debug
│ │ │ │ │ └── kotlin
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ └── test
│ │ │ │ │ │ └── android
│ │ │ │ │ │ └── lib
│ │ │ │ │ │ └── DebugLibClass.kt
│ │ │ │ │ ├── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ └── java
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ └── kover
│ │ │ │ │ │ └── test
│ │ │ │ │ │ └── android
│ │ │ │ │ │ └── lib
│ │ │ │ │ │ ├── DebugUtil.kt
│ │ │ │ │ │ └── MagicFactory.kt
│ │ │ │ │ └── test
│ │ │ │ │ └── java
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── kover
│ │ │ │ │ └── test
│ │ │ │ │ └── android
│ │ │ │ │ └── LocalLibTests.kt
│ │ │ └── settings.gradle.kts
│ │ └── with-jvm
│ │ │ ├── app
│ │ │ ├── build.gradle.kts
│ │ │ └── src
│ │ │ │ ├── main
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ ├── java
│ │ │ │ │ └── kotlinx
│ │ │ │ │ │ └── kover
│ │ │ │ │ │ └── test
│ │ │ │ │ │ └── android
│ │ │ │ │ │ ├── DebugUtil.kt
│ │ │ │ │ │ ├── MainActivity.kt
│ │ │ │ │ │ └── Maths.kt
│ │ │ │ └── res
│ │ │ │ │ ├── layout
│ │ │ │ │ └── activity_main.xml
│ │ │ │ │ └── values
│ │ │ │ │ ├── colors.xml
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ └── themes.xml
│ │ │ │ └── test
│ │ │ │ └── java
│ │ │ │ └── kotlinx
│ │ │ │ └── kover
│ │ │ │ └── test
│ │ │ │ └── android
│ │ │ │ └── LocalTests.kt
│ │ │ ├── build.gradle.kts
│ │ │ ├── gradle.properties
│ │ │ ├── lib
│ │ │ ├── build.gradle.kts
│ │ │ └── src
│ │ │ │ ├── main
│ │ │ │ └── kotlin
│ │ │ │ │ └── AppClasses.kt
│ │ │ │ └── test
│ │ │ │ └── kotlin
│ │ │ │ └── TestClasses.kt
│ │ │ └── settings.gradle.kts
│ └── jvm
│ │ ├── copy-variant
│ │ ├── build.gradle.kts
│ │ ├── first
│ │ │ ├── build.gradle.kts
│ │ │ └── src
│ │ │ │ ├── main
│ │ │ │ └── kotlin
│ │ │ │ │ ├── Utils.kt
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── kover
│ │ │ │ │ └── examples
│ │ │ │ │ └── merged
│ │ │ │ │ ├── AppClasses.kt
│ │ │ │ │ └── subproject
│ │ │ │ │ └── SubpackageClasses.kt
│ │ │ │ └── test
│ │ │ │ └── kotlin
│ │ │ │ └── TestClasses.kt
│ │ ├── second
│ │ │ ├── build.gradle.kts
│ │ │ └── src
│ │ │ │ └── main
│ │ │ │ └── kotlin
│ │ │ │ └── ClassFromSecondProject.kt
│ │ ├── settings.gradle.kts
│ │ └── src
│ │ │ ├── main
│ │ │ └── kotlin
│ │ │ │ ├── AppClasses.kt
│ │ │ │ └── kotlinx
│ │ │ │ └── kover
│ │ │ │ └── examples
│ │ │ │ └── merged
│ │ │ │ └── utils
│ │ │ │ └── Utils.kt
│ │ │ └── test
│ │ │ └── kotlin
│ │ │ └── TestClasses.kt
│ │ ├── merged
│ │ ├── build.gradle.kts
│ │ ├── excluded
│ │ │ ├── build.gradle.kts
│ │ │ └── src
│ │ │ │ └── main
│ │ │ │ └── kotlin
│ │ │ │ └── ClassFromExcludedProject.kt
│ │ ├── settings.gradle.kts
│ │ ├── src
│ │ │ ├── main
│ │ │ │ └── kotlin
│ │ │ │ │ ├── AppClasses.kt
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── kover
│ │ │ │ │ └── examples
│ │ │ │ │ └── merged
│ │ │ │ │ └── utils
│ │ │ │ │ └── Utils.kt
│ │ │ └── test
│ │ │ │ └── kotlin
│ │ │ │ └── TestClasses.kt
│ │ └── subproject
│ │ │ ├── build.gradle.kts
│ │ │ └── src
│ │ │ ├── main
│ │ │ └── kotlin
│ │ │ │ ├── Utils.kt
│ │ │ │ └── kotlinx
│ │ │ │ └── kover
│ │ │ │ └── examples
│ │ │ │ └── merged
│ │ │ │ ├── AppClasses.kt
│ │ │ │ └── subproject
│ │ │ │ └── SubpackageClasses.kt
│ │ │ └── test
│ │ │ └── kotlin
│ │ │ └── TestClasses.kt
│ │ ├── single-kmp
│ │ ├── build.gradle.kts
│ │ ├── settings.gradle.kts
│ │ └── src
│ │ │ ├── commonMain
│ │ │ └── kotlin
│ │ │ │ └── AppClasses.kt
│ │ │ └── jvmTest
│ │ │ └── kotlin
│ │ │ └── TestClasses.kt
│ │ └── single
│ │ ├── build.gradle.kts
│ │ ├── settings.gradle.kts
│ │ └── src
│ │ ├── main
│ │ └── kotlin
│ │ │ └── AppClasses.kt
│ │ └── test
│ │ └── kotlin
│ │ └── TestClasses.kt
├── gradle-wrappers
│ ├── 6.8
│ │ ├── gradle
│ │ │ └── wrapper
│ │ │ │ ├── gradle-wrapper.jar
│ │ │ │ └── gradle-wrapper.properties
│ │ ├── gradlew
│ │ └── gradlew.bat
│ └── 8.0.1
│ │ ├── gradle
│ │ └── wrapper
│ │ │ ├── gradle-wrapper.jar
│ │ │ └── gradle-wrapper.properties
│ │ ├── gradlew
│ │ └── gradlew.bat
└── src
│ ├── functionalTest
│ ├── kotlin
│ │ └── kotlinx
│ │ │ └── kover
│ │ │ └── gradle
│ │ │ └── plugin
│ │ │ └── test
│ │ │ └── functional
│ │ │ ├── cases
│ │ │ ├── AccessorsTests.kt
│ │ │ ├── AdaptersTests.kt
│ │ │ ├── AndroidConfigsTests.kt
│ │ │ ├── ArtifactGenerationTests.kt
│ │ │ ├── BinaryReportTests.kt
│ │ │ ├── BuildCacheRelocationTests.kt
│ │ │ ├── ClassDupTest.kt
│ │ │ ├── CompatibilityTests.kt
│ │ │ ├── CompilationFiltersTests.kt
│ │ │ ├── ComposeTests.kt
│ │ │ ├── ConfigurationCacheTests.kt
│ │ │ ├── ConfigurationOrderTests.kt
│ │ │ ├── ConstantObjectTests.kt
│ │ │ ├── CountersValueTests.kt
│ │ │ ├── DefaultConfigTests.kt
│ │ │ ├── DynamicFeatureTests.kt
│ │ │ ├── ExamplesBuildTests.kt
│ │ │ ├── FinalizingEnqueueTests.kt
│ │ │ ├── GradleValidationTests.kt
│ │ │ ├── InstrumentationFilteringTests.kt
│ │ │ ├── KoverDisableTests.kt
│ │ │ ├── LogTests.kt
│ │ │ ├── LoggingTaskTests.kt
│ │ │ ├── MergingTests.kt
│ │ │ ├── MetadataCompatibilityTests.kt
│ │ │ ├── MultiProjectTests.kt
│ │ │ ├── NoDependencyTests.kt
│ │ │ ├── NoTestReportsTests.kt
│ │ │ ├── ReportAnnotationFilterTests.kt
│ │ │ ├── ReportInheritedFromFilterTests.kt
│ │ │ ├── ReportProjectFilterTests.kt
│ │ │ ├── ReportsAdditionalIcTests.kt
│ │ │ ├── ReportsCachingTests.kt
│ │ │ ├── ReportsFilteringTests.kt
│ │ │ ├── ReportsUpToDateTests.kt
│ │ │ ├── SettingsPluginTests.kt
│ │ │ ├── SourceSetsTests.kt
│ │ │ ├── TaskFilteringTests.kt
│ │ │ ├── TaskInterfacesTests.kt
│ │ │ ├── TasksOrderingTests.kt
│ │ │ ├── VariantUsageTests.kt
│ │ │ ├── VerificationTests.kt
│ │ │ ├── VersionsInExamplesTests.kt
│ │ │ └── XmlReportTests.kt
│ │ │ └── framework
│ │ │ ├── checker
│ │ │ ├── Checker.kt
│ │ │ ├── CheckerTypes.kt
│ │ │ └── Defaults.kt
│ │ │ ├── common
│ │ │ ├── Environment.kt
│ │ │ └── Types.kt
│ │ │ ├── configurator
│ │ │ ├── BuildConfigurator.kt
│ │ │ └── ConfiguratorTypes.kt
│ │ │ ├── mirroring
│ │ │ ├── Invoking.kt
│ │ │ ├── Mirroring.kt
│ │ │ ├── MirroringTest.kt
│ │ │ ├── Parsing.kt
│ │ │ └── Printing.kt
│ │ │ ├── runner
│ │ │ ├── BuildsRunner.kt
│ │ │ ├── CustomizableRunning.kt
│ │ │ ├── GradleRunner.kt
│ │ │ └── StepsRunner.kt
│ │ │ ├── starter
│ │ │ ├── Commons.kt
│ │ │ ├── Example.kt
│ │ │ ├── Single.kt
│ │ │ ├── Sliced.kt
│ │ │ └── Template.kt
│ │ │ └── writer
│ │ │ ├── BuildScriptWriter.kt
│ │ │ ├── BuildWriter.kt
│ │ │ ├── FormattedWriter.kt
│ │ │ ├── Formatter.kt
│ │ │ └── SettingsWriter.kt
│ └── templates
│ │ ├── builds
│ │ ├── android-class-dup
│ │ │ ├── app
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ │ ├── debug
│ │ │ │ │ └── kotlin
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ └── kover
│ │ │ │ │ │ └── test
│ │ │ │ │ │ └── android
│ │ │ │ │ │ └── DupClass.kt
│ │ │ │ │ ├── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ ├── kotlin
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ │ └── kover
│ │ │ │ │ │ │ └── test
│ │ │ │ │ │ │ └── android
│ │ │ │ │ │ │ └── MainActivity.kt
│ │ │ │ │ └── res
│ │ │ │ │ │ ├── layout
│ │ │ │ │ │ └── activity_main.xml
│ │ │ │ │ │ └── values
│ │ │ │ │ │ ├── colors.xml
│ │ │ │ │ │ ├── strings.xml
│ │ │ │ │ │ └── themes.xml
│ │ │ │ │ ├── release
│ │ │ │ │ └── kotlin
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ └── kover
│ │ │ │ │ │ └── test
│ │ │ │ │ │ └── android
│ │ │ │ │ │ └── DupClass.kt
│ │ │ │ │ └── test
│ │ │ │ │ └── java
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── kover
│ │ │ │ │ └── test
│ │ │ │ │ └── android
│ │ │ │ │ └── LocalTests.kt
│ │ │ ├── build.gradle.kts
│ │ │ ├── gradle.properties
│ │ │ └── settings.gradle.kts
│ │ ├── android-common-verify
│ │ │ ├── app
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ │ ├── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ ├── java
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ │ └── kover
│ │ │ │ │ │ │ └── test
│ │ │ │ │ │ │ └── android
│ │ │ │ │ │ │ ├── DebugUtil.kt
│ │ │ │ │ │ │ └── Maths.kt
│ │ │ │ │ └── res
│ │ │ │ │ │ ├── layout
│ │ │ │ │ │ └── activity_main.xml
│ │ │ │ │ │ └── values
│ │ │ │ │ │ ├── colors.xml
│ │ │ │ │ │ ├── strings.xml
│ │ │ │ │ │ └── themes.xml
│ │ │ │ │ └── test
│ │ │ │ │ └── java
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── kover
│ │ │ │ │ └── test
│ │ │ │ │ └── android
│ │ │ │ │ └── LocalTests.kt
│ │ │ ├── build.gradle.kts
│ │ │ ├── gradle.properties
│ │ │ └── settings.gradle.kts
│ │ ├── android-compose
│ │ │ ├── app
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ │ ├── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ ├── java
│ │ │ │ │ │ └── org
│ │ │ │ │ │ │ └── jetbrains
│ │ │ │ │ │ │ └── composetests
│ │ │ │ │ │ │ ├── ComposeFunctions.kt
│ │ │ │ │ │ │ └── MainActivity.kt
│ │ │ │ │ └── res
│ │ │ │ │ │ ├── drawable
│ │ │ │ │ │ ├── ic_launcher_background.xml
│ │ │ │ │ │ └── ic_launcher_foreground.xml
│ │ │ │ │ │ ├── mipmap-anydpi
│ │ │ │ │ │ ├── ic_launcher.xml
│ │ │ │ │ │ └── ic_launcher_round.xml
│ │ │ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ │ ├── ic_launcher.webp
│ │ │ │ │ │ └── ic_launcher_round.webp
│ │ │ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ │ ├── ic_launcher.webp
│ │ │ │ │ │ └── ic_launcher_round.webp
│ │ │ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ │ ├── ic_launcher.webp
│ │ │ │ │ │ └── ic_launcher_round.webp
│ │ │ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ │ ├── ic_launcher.webp
│ │ │ │ │ │ └── ic_launcher_round.webp
│ │ │ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ │ ├── ic_launcher.webp
│ │ │ │ │ │ └── ic_launcher_round.webp
│ │ │ │ │ │ ├── values
│ │ │ │ │ │ ├── colors.xml
│ │ │ │ │ │ ├── strings.xml
│ │ │ │ │ │ └── themes.xml
│ │ │ │ │ │ └── xml
│ │ │ │ │ │ ├── backup_rules.xml
│ │ │ │ │ │ └── data_extraction_rules.xml
│ │ │ │ │ └── test
│ │ │ │ │ └── java
│ │ │ │ │ └── org
│ │ │ │ │ └── jetbrains
│ │ │ │ │ └── composetests
│ │ │ │ │ └── ComposableTest.kt
│ │ │ ├── build.gradle.kts
│ │ │ ├── gradle.properties
│ │ │ ├── gradle
│ │ │ │ └── libs.versions.toml
│ │ │ └── settings.gradle.kts
│ │ ├── android-inverse-order
│ │ │ ├── app
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ │ ├── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ ├── java
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ │ └── kover
│ │ │ │ │ │ │ └── test
│ │ │ │ │ │ │ └── android
│ │ │ │ │ │ │ ├── DebugUtil.kt
│ │ │ │ │ │ │ ├── MainActivity.kt
│ │ │ │ │ │ │ └── Maths.kt
│ │ │ │ │ └── res
│ │ │ │ │ │ ├── layout
│ │ │ │ │ │ └── activity_main.xml
│ │ │ │ │ │ └── values
│ │ │ │ │ │ ├── colors.xml
│ │ │ │ │ │ ├── strings.xml
│ │ │ │ │ │ └── themes.xml
│ │ │ │ │ └── test
│ │ │ │ │ └── java
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── kover
│ │ │ │ │ └── test
│ │ │ │ │ └── android
│ │ │ │ │ └── LocalTests.kt
│ │ │ ├── build.gradle.kts
│ │ │ ├── gradle.properties
│ │ │ └── settings.gradle.kts
│ │ ├── android-mpp-inverse-order
│ │ │ ├── build.gradle.kts
│ │ │ ├── gradle.properties
│ │ │ ├── settings.gradle.kts
│ │ │ └── src
│ │ │ │ ├── debug
│ │ │ │ └── kotlin
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── test
│ │ │ │ │ └── android
│ │ │ │ │ └── DebugAppClass.kt
│ │ │ │ ├── jvmMain
│ │ │ │ └── kotlin
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── test
│ │ │ │ │ └── jvm
│ │ │ │ │ └── JvmClass.kt
│ │ │ │ ├── jvmTest
│ │ │ │ └── kotlin
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── test
│ │ │ │ │ └── jvm
│ │ │ │ │ └── JvmTest.kt
│ │ │ │ ├── main
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ ├── java
│ │ │ │ │ └── kotlinx
│ │ │ │ │ │ └── kover
│ │ │ │ │ │ └── test
│ │ │ │ │ │ └── android
│ │ │ │ │ │ ├── DebugUtil.kt
│ │ │ │ │ │ ├── MainActivity.kt
│ │ │ │ │ │ └── Maths.kt
│ │ │ │ └── res
│ │ │ │ │ ├── layout
│ │ │ │ │ └── activity_main.xml
│ │ │ │ │ └── values
│ │ │ │ │ ├── colors.xml
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ └── themes.xml
│ │ │ │ └── test
│ │ │ │ └── java
│ │ │ │ └── kotlinx
│ │ │ │ └── kover
│ │ │ │ └── test
│ │ │ │ └── android
│ │ │ │ └── LocalTests.kt
│ │ ├── android-no-variant-for-config
│ │ │ ├── app
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ │ ├── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ ├── java
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ │ └── kover
│ │ │ │ │ │ │ └── test
│ │ │ │ │ │ │ └── android
│ │ │ │ │ │ │ ├── DebugUtil.kt
│ │ │ │ │ │ │ ├── MainActivity.kt
│ │ │ │ │ │ │ └── Maths.kt
│ │ │ │ │ └── res
│ │ │ │ │ │ ├── layout
│ │ │ │ │ │ └── activity_main.xml
│ │ │ │ │ │ └── values
│ │ │ │ │ │ ├── colors.xml
│ │ │ │ │ │ ├── strings.xml
│ │ │ │ │ │ └── themes.xml
│ │ │ │ │ └── test
│ │ │ │ │ └── java
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── kover
│ │ │ │ │ └── test
│ │ │ │ │ └── android
│ │ │ │ │ └── LocalTests.kt
│ │ │ ├── build.gradle.kts
│ │ │ ├── gradle.properties
│ │ │ └── settings.gradle.kts
│ │ ├── android-no-variant-for-merge
│ │ │ ├── app
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ │ ├── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ ├── java
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ │ └── kover
│ │ │ │ │ │ │ └── test
│ │ │ │ │ │ │ └── android
│ │ │ │ │ │ │ ├── DebugUtil.kt
│ │ │ │ │ │ │ ├── MainActivity.kt
│ │ │ │ │ │ │ └── Maths.kt
│ │ │ │ │ └── res
│ │ │ │ │ │ ├── layout
│ │ │ │ │ │ └── activity_main.xml
│ │ │ │ │ │ └── values
│ │ │ │ │ │ ├── colors.xml
│ │ │ │ │ │ ├── strings.xml
│ │ │ │ │ │ └── themes.xml
│ │ │ │ │ └── test
│ │ │ │ │ └── java
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── kover
│ │ │ │ │ └── test
│ │ │ │ │ └── android
│ │ │ │ │ └── LocalTests.kt
│ │ │ ├── build.gradle.kts
│ │ │ ├── gradle.properties
│ │ │ └── settings.gradle.kts
│ │ ├── android-subproject-apply
│ │ │ ├── app
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ │ ├── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ ├── java
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ │ └── kover
│ │ │ │ │ │ │ └── test
│ │ │ │ │ │ │ └── android
│ │ │ │ │ │ │ ├── DebugUtil.kt
│ │ │ │ │ │ │ ├── MainActivity.kt
│ │ │ │ │ │ │ └── Maths.kt
│ │ │ │ │ └── res
│ │ │ │ │ │ ├── layout
│ │ │ │ │ │ └── activity_main.xml
│ │ │ │ │ │ └── values
│ │ │ │ │ │ ├── colors.xml
│ │ │ │ │ │ ├── strings.xml
│ │ │ │ │ │ └── themes.xml
│ │ │ │ │ └── test
│ │ │ │ │ └── java
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── kover
│ │ │ │ │ └── test
│ │ │ │ │ └── android
│ │ │ │ │ └── LocalTests.kt
│ │ │ ├── build.gradle.kts
│ │ │ ├── gradle.properties
│ │ │ └── settings.gradle.kts
│ │ ├── android-test-tasks-filtering
│ │ │ ├── app
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ │ ├── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ ├── java
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ │ └── kover
│ │ │ │ │ │ │ └── test
│ │ │ │ │ │ │ └── android
│ │ │ │ │ │ │ ├── DebugUtil.kt
│ │ │ │ │ │ │ ├── MainActivity.kt
│ │ │ │ │ │ │ └── Maths.kt
│ │ │ │ │ └── res
│ │ │ │ │ │ ├── layout
│ │ │ │ │ │ └── activity_main.xml
│ │ │ │ │ │ └── values
│ │ │ │ │ │ ├── colors.xml
│ │ │ │ │ │ ├── strings.xml
│ │ │ │ │ │ └── themes.xml
│ │ │ │ │ └── test
│ │ │ │ │ └── java
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── kover
│ │ │ │ │ └── test
│ │ │ │ │ └── android
│ │ │ │ │ └── LocalTests.kt
│ │ │ ├── build.gradle.kts
│ │ │ ├── gradle.properties
│ │ │ └── settings.gradle.kts
│ │ ├── buildsrc-usage
│ │ │ ├── build.gradle.kts
│ │ │ ├── buildSrc
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ │ └── main
│ │ │ │ │ └── kotlin
│ │ │ │ │ └── Usage.kt
│ │ │ ├── requires
│ │ │ ├── settings.gradle.kts
│ │ │ └── src
│ │ │ │ ├── main
│ │ │ │ └── kotlin
│ │ │ │ │ └── ExampleClass.kt
│ │ │ │ └── test
│ │ │ │ └── kotlin
│ │ │ │ └── TestClass.kt
│ │ ├── counters
│ │ │ ├── build.gradle.kts
│ │ │ ├── settings.gradle.kts
│ │ │ └── src
│ │ │ │ ├── main
│ │ │ │ ├── java
│ │ │ │ │ ├── TryFinally.java
│ │ │ │ │ └── TryWithResources.java
│ │ │ │ └── kotlin
│ │ │ │ │ ├── Branches.kt
│ │ │ │ │ ├── Different.kt
│ │ │ │ │ ├── Objects.kt
│ │ │ │ │ └── Sealed.kt
│ │ │ │ └── test
│ │ │ │ └── kotlin
│ │ │ │ └── TestClass.kt
│ │ ├── different-plugins
│ │ │ ├── build.gradle.kts
│ │ │ ├── settings.gradle.kts
│ │ │ └── subproject-multiplatform
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ ├── commonMain
│ │ │ │ └── kotlin
│ │ │ │ │ └── CommonClass.kt
│ │ │ │ ├── commonTest
│ │ │ │ └── kotlin
│ │ │ │ │ └── CommonTest.kt
│ │ │ │ ├── jvmMain
│ │ │ │ └── kotlin
│ │ │ │ │ └── JvmClass.kt
│ │ │ │ └── jvmTest
│ │ │ │ └── kotlin
│ │ │ │ └── JvmTest.kt
│ │ ├── disabledUnitTests
│ │ │ ├── app
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ │ ├── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ ├── java
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ │ └── kover
│ │ │ │ │ │ │ └── test
│ │ │ │ │ │ │ └── android
│ │ │ │ │ │ │ ├── DebugUtil.kt
│ │ │ │ │ │ │ ├── MainActivity.kt
│ │ │ │ │ │ │ └── Maths.kt
│ │ │ │ │ └── res
│ │ │ │ │ │ ├── layout
│ │ │ │ │ │ └── activity_main.xml
│ │ │ │ │ │ └── values
│ │ │ │ │ │ ├── colors.xml
│ │ │ │ │ │ ├── strings.xml
│ │ │ │ │ │ └── themes.xml
│ │ │ │ │ └── test
│ │ │ │ │ └── java
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── kover
│ │ │ │ │ └── test
│ │ │ │ │ └── android
│ │ │ │ │ └── LocalTests.kt
│ │ │ ├── build.gradle.kts
│ │ │ ├── gradle.properties
│ │ │ └── settings.gradle.kts
│ │ ├── k2-counters
│ │ │ ├── build.gradle.kts
│ │ │ ├── settings.gradle.kts
│ │ │ └── src
│ │ │ │ ├── main
│ │ │ │ └── kotlin
│ │ │ │ │ └── Branches.kt
│ │ │ │ └── test
│ │ │ │ └── kotlin
│ │ │ │ └── TestClass.kt
│ │ ├── nested-project
│ │ │ ├── build.gradle.kts
│ │ │ ├── settings.gradle.kts
│ │ │ └── subprojects
│ │ │ │ └── alpha-project
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ └── test
│ │ │ │ └── kotlin
│ │ │ │ └── MyTest.kt
│ │ ├── no-dependency-android
│ │ │ ├── app
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ │ ├── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ ├── java
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ │ └── kover
│ │ │ │ │ │ │ └── test
│ │ │ │ │ │ │ └── android
│ │ │ │ │ │ │ ├── DebugUtil.kt
│ │ │ │ │ │ │ ├── MainActivity.kt
│ │ │ │ │ │ │ └── Maths.kt
│ │ │ │ │ └── res
│ │ │ │ │ │ ├── layout
│ │ │ │ │ │ └── activity_main.xml
│ │ │ │ │ │ └── values
│ │ │ │ │ │ ├── colors.xml
│ │ │ │ │ │ ├── strings.xml
│ │ │ │ │ │ └── themes.xml
│ │ │ │ │ └── test
│ │ │ │ │ └── java
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── kover
│ │ │ │ │ └── test
│ │ │ │ │ └── android
│ │ │ │ │ └── LocalTests.kt
│ │ │ ├── build.gradle.kts
│ │ │ ├── gradle.properties
│ │ │ ├── settings.gradle.kts
│ │ │ └── subproject
│ │ │ │ └── build.gradle.kts
│ │ ├── no-dependency-jvm
│ │ │ ├── build.gradle.kts
│ │ │ ├── settings.gradle.kts
│ │ │ └── subproject
│ │ │ │ └── build.gradle.kts
│ │ ├── no-dependency-variant-android
│ │ │ ├── app-extra
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ │ ├── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ ├── java
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ │ └── kover
│ │ │ │ │ │ │ └── test
│ │ │ │ │ │ │ └── android
│ │ │ │ │ │ │ └── ExtraUtil.kt
│ │ │ │ │ └── res
│ │ │ │ │ │ ├── layout
│ │ │ │ │ │ └── activity_main.xml
│ │ │ │ │ │ └── values
│ │ │ │ │ │ ├── colors.xml
│ │ │ │ │ │ ├── strings.xml
│ │ │ │ │ │ └── themes.xml
│ │ │ │ │ └── test
│ │ │ │ │ └── java
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── kover
│ │ │ │ │ └── test
│ │ │ │ │ └── android
│ │ │ │ │ └── LocalTests.kt
│ │ │ ├── app
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ │ ├── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ ├── java
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ │ └── kover
│ │ │ │ │ │ │ └── test
│ │ │ │ │ │ │ └── android
│ │ │ │ │ │ │ ├── DebugUtil.kt
│ │ │ │ │ │ │ ├── MainActivity.kt
│ │ │ │ │ │ │ └── Maths.kt
│ │ │ │ │ └── res
│ │ │ │ │ │ ├── layout
│ │ │ │ │ │ └── activity_main.xml
│ │ │ │ │ │ └── values
│ │ │ │ │ │ ├── colors.xml
│ │ │ │ │ │ ├── strings.xml
│ │ │ │ │ │ └── themes.xml
│ │ │ │ │ └── test
│ │ │ │ │ └── java
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── kover
│ │ │ │ │ └── test
│ │ │ │ │ └── android
│ │ │ │ │ └── LocalTests.kt
│ │ │ ├── build.gradle.kts
│ │ │ ├── gradle.properties
│ │ │ └── settings.gradle.kts
│ │ ├── no-tests-jvm
│ │ │ ├── build.gradle.kts
│ │ │ ├── settings.gradle.kts
│ │ │ └── src
│ │ │ │ └── main
│ │ │ │ └── kotlin
│ │ │ │ └── ExampleClass.kt
│ │ ├── no-tests-mpp
│ │ │ ├── build.gradle.kts
│ │ │ ├── settings.gradle.kts
│ │ │ └── src
│ │ │ │ └── jvmMain
│ │ │ │ └── kotlin
│ │ │ │ └── ExampleClass.kt
│ │ ├── settings-plugin-android
│ │ │ ├── app
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ │ ├── debug
│ │ │ │ │ └── kotlin
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ └── kover
│ │ │ │ │ │ └── test
│ │ │ │ │ │ └── android
│ │ │ │ │ │ └── DebugClass.kt
│ │ │ │ │ ├── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ ├── kotlin
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ │ └── kover
│ │ │ │ │ │ │ └── test
│ │ │ │ │ │ │ └── android
│ │ │ │ │ │ │ ├── MainActivity.kt
│ │ │ │ │ │ │ └── MainClass.kt
│ │ │ │ │ └── res
│ │ │ │ │ │ ├── layout
│ │ │ │ │ │ └── activity_main.xml
│ │ │ │ │ │ └── values
│ │ │ │ │ │ ├── colors.xml
│ │ │ │ │ │ ├── strings.xml
│ │ │ │ │ │ └── themes.xml
│ │ │ │ │ ├── release
│ │ │ │ │ └── kotlin
│ │ │ │ │ │ └── kotlinx
│ │ │ │ │ │ └── kover
│ │ │ │ │ │ └── test
│ │ │ │ │ │ └── android
│ │ │ │ │ │ └── ReleaseClass.kt
│ │ │ │ │ └── test
│ │ │ │ │ └── java
│ │ │ │ │ └── kotlinx
│ │ │ │ │ └── kover
│ │ │ │ │ └── test
│ │ │ │ │ └── android
│ │ │ │ │ └── LocalTests.kt
│ │ │ ├── build.gradle.kts
│ │ │ ├── gradle.properties
│ │ │ └── settings.gradle.kts
│ │ ├── settings-plugin-instrumentation
│ │ │ ├── build.gradle.kts
│ │ │ ├── settings.gradle.kts
│ │ │ ├── src
│ │ │ │ ├── main
│ │ │ │ │ └── kotlin
│ │ │ │ │ │ └── RootClass.kt
│ │ │ │ └── test
│ │ │ │ │ └── kotlin
│ │ │ │ │ └── RootTest.kt
│ │ │ ├── subproject
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ │ ├── main
│ │ │ │ │ └── kotlin
│ │ │ │ │ │ └── SubprojectClass.kt
│ │ │ │ │ └── test
│ │ │ │ │ └── kotlin
│ │ │ │ │ └── ATest.kt
│ │ │ └── subproject2
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ ├── main
│ │ │ │ └── kotlin
│ │ │ │ │ └── Subproject2Class.kt
│ │ │ │ └── test
│ │ │ │ └── kotlin
│ │ │ │ └── ATest.kt
│ │ ├── settings-plugin-verify-each
│ │ │ ├── build.gradle.kts
│ │ │ ├── ignored
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ │ ├── main
│ │ │ │ │ └── kotlin
│ │ │ │ │ │ └── SubprojectClass.kt
│ │ │ │ │ └── test
│ │ │ │ │ └── kotlin
│ │ │ │ │ └── ATest.kt
│ │ │ ├── settings.gradle.kts
│ │ │ ├── src
│ │ │ │ ├── main
│ │ │ │ │ └── kotlin
│ │ │ │ │ │ └── RootClass.kt
│ │ │ │ └── test
│ │ │ │ │ └── kotlin
│ │ │ │ │ └── RootTest.kt
│ │ │ ├── subproject
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ │ ├── main
│ │ │ │ │ └── kotlin
│ │ │ │ │ │ └── SubprojectClass.kt
│ │ │ │ │ └── test
│ │ │ │ │ └── kotlin
│ │ │ │ │ └── ATest.kt
│ │ │ └── subproject2
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ ├── main
│ │ │ │ └── kotlin
│ │ │ │ │ └── SubprojectClass.kt
│ │ │ │ └── test
│ │ │ │ └── kotlin
│ │ │ │ └── ATest.kt
│ │ ├── settings-plugin-verify
│ │ │ ├── build.gradle.kts
│ │ │ ├── settings.gradle.kts
│ │ │ ├── src
│ │ │ │ ├── main
│ │ │ │ │ └── kotlin
│ │ │ │ │ │ └── RootClass.kt
│ │ │ │ └── test
│ │ │ │ │ └── kotlin
│ │ │ │ │ └── RootTest.kt
│ │ │ └── subproject
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ ├── main
│ │ │ │ └── kotlin
│ │ │ │ │ └── SubprojectClass.kt
│ │ │ │ └── test
│ │ │ │ └── kotlin
│ │ │ │ └── ATest.kt
│ │ ├── settings-plugin
│ │ │ ├── build.gradle.kts
│ │ │ ├── settings.gradle.kts
│ │ │ ├── src
│ │ │ │ ├── main
│ │ │ │ │ └── kotlin
│ │ │ │ │ │ └── RootClass.kt
│ │ │ │ └── test
│ │ │ │ │ └── kotlin
│ │ │ │ │ └── RootTest.kt
│ │ │ └── subproject
│ │ │ │ ├── build.gradle.kts
│ │ │ │ └── src
│ │ │ │ ├── main
│ │ │ │ └── kotlin
│ │ │ │ │ └── SubprojectClass.kt
│ │ │ │ └── test
│ │ │ │ └── kotlin
│ │ │ │ └── ATest.kt
│ │ ├── sourcesets-mpp
│ │ │ ├── build.gradle.kts
│ │ │ ├── settings.gradle.kts
│ │ │ └── src
│ │ │ │ ├── jvmExtra
│ │ │ │ └── kotlin
│ │ │ │ │ └── ExtraClass.kt
│ │ │ │ ├── jvmMain
│ │ │ │ └── kotlin
│ │ │ │ │ └── AppClasses.kt
│ │ │ │ └── jvmTest
│ │ │ │ └── kotlin
│ │ │ │ └── TestClasses.kt
│ │ ├── sourcesets-multi
│ │ │ ├── build.gradle.kts
│ │ │ ├── settings.gradle.kts
│ │ │ └── src
│ │ │ │ ├── extra
│ │ │ │ └── kotlin
│ │ │ │ │ └── ExtraClass.kt
│ │ │ │ ├── foo
│ │ │ │ └── kotlin
│ │ │ │ │ └── FooClass.kt
│ │ │ │ ├── main
│ │ │ │ └── kotlin
│ │ │ │ │ └── MainClass.kt
│ │ │ │ └── test
│ │ │ │ └── kotlin
│ │ │ │ └── TestClasses.kt
│ │ └── sourcesets
│ │ │ ├── build.gradle.kts
│ │ │ ├── settings.gradle.kts
│ │ │ └── src
│ │ │ ├── extra
│ │ │ └── kotlin
│ │ │ │ └── ExtraClass.kt
│ │ │ ├── main
│ │ │ └── kotlin
│ │ │ │ └── AppClasses.kt
│ │ │ └── test
│ │ │ └── kotlin
│ │ │ └── TestClasses.kt
│ │ ├── report.bin
│ │ └── sources
│ │ ├── annotations-main
│ │ ├── main
│ │ │ └── kotlin
│ │ │ │ └── Sources.kt
│ │ └── test
│ │ │ └── kotlin
│ │ │ └── TestClass.kt
│ │ ├── annotations-mix
│ │ ├── main
│ │ │ └── kotlin
│ │ │ │ └── Sources.kt
│ │ └── test
│ │ │ └── kotlin
│ │ │ └── TestClass.kt
│ │ ├── different-packages
│ │ ├── main
│ │ │ └── kotlin
│ │ │ │ ├── FooSources.kt
│ │ │ │ └── Sources.kt
│ │ └── test
│ │ │ └── kotlin
│ │ │ └── TestClass.kt
│ │ ├── inherited-main
│ │ ├── main
│ │ │ └── kotlin
│ │ │ │ └── Sources.kt
│ │ └── test
│ │ │ └── kotlin
│ │ │ └── TestClass.kt
│ │ ├── multiproject-common
│ │ ├── main
│ │ │ └── kotlin
│ │ │ │ └── CommonSources.kt
│ │ └── test
│ │ │ └── kotlin
│ │ │ └── CommonTestClass.kt
│ │ ├── multiproject-user
│ │ ├── main
│ │ │ └── kotlin
│ │ │ │ └── UserSources.kt
│ │ └── test
│ │ │ └── kotlin
│ │ │ └── UserTestClass.kt
│ │ ├── one
│ │ ├── main
│ │ │ └── kotlin
│ │ │ │ └── Sources.kt
│ │ └── test
│ │ │ └── kotlin
│ │ │ └── TestClass.kt
│ │ ├── simple
│ │ ├── main
│ │ │ └── kotlin
│ │ │ │ └── Sources.kt
│ │ └── test
│ │ │ └── kotlin
│ │ │ └── TestClass.kt
│ │ ├── two
│ │ ├── main
│ │ │ └── kotlin
│ │ │ │ └── Sources.kt
│ │ └── test
│ │ │ └── kotlin
│ │ │ └── TestClass.kt
│ │ └── verification
│ │ ├── main
│ │ └── kotlin
│ │ │ ├── FirstClasses.kt
│ │ │ └── SecondClasses.kt
│ │ └── test
│ │ └── kotlin
│ │ └── TestClass.kt
│ └── main
│ └── kotlin
│ └── kotlinx
│ └── kover
│ └── gradle
│ ├── aggregation
│ ├── commons
│ │ ├── artifacts
│ │ │ ├── ArtifactSerializer.kt
│ │ │ ├── Configurations.kt
│ │ │ ├── KoverContentAttr.kt
│ │ │ └── KoverUsageAttr.kt
│ │ ├── names
│ │ │ ├── KoverPaths.kt
│ │ │ ├── PluginId.kt
│ │ │ └── SettingsNames.kt
│ │ └── utils
│ │ │ └── Dynamic.kt
│ ├── project
│ │ ├── KoverProjectGradlePlugin.kt
│ │ ├── instrumentation
│ │ │ └── JvmTestTaskInstrumentation.kt
│ │ └── tasks
│ │ │ ├── ArtifactGenerationTask.kt
│ │ │ └── KoverAgentSearchTask.kt
│ └── settings
│ │ ├── KoverParametersProcessor.kt
│ │ ├── KoverSettingsGradlePlugin.kt
│ │ ├── dsl
│ │ ├── KoverNames.kt
│ │ ├── KoverSettingsExtension.kt
│ │ └── intern
│ │ │ ├── KoverProjectExtensionImpl.kt
│ │ │ ├── KoverSettingsExtensionImpl.kt
│ │ │ ├── ReportsSettingsImpl.kt
│ │ │ ├── VerificationRuleSettingsImpl.kt
│ │ │ └── VerifySettingsImpl.kt
│ │ └── tasks
│ │ ├── AbstractKoverReportTask.kt
│ │ ├── AbstractKoverTask.kt
│ │ ├── CommonTypes.kt
│ │ ├── KoverHtmlReportTask.kt
│ │ ├── KoverReportVerifyTask.kt
│ │ ├── KoverVerifyTask.kt
│ │ └── KoverXmlReportTask.kt
│ └── plugin
│ ├── KoverGradlePlugin.kt
│ ├── appliers
│ ├── FinalizeKover.kt
│ ├── KoverContext.kt
│ ├── KoverMerge.kt
│ ├── PrepareKover.kt
│ ├── artifacts
│ │ ├── AbstractVariantArtifacts.kt
│ │ ├── AndroidVariantArtifacts.kt
│ │ ├── CustomVariantArtifacts.kt
│ │ ├── JvmVariantArtifacts.kt
│ │ └── TotalVariantArtifacts.kt
│ ├── instrumentation
│ │ └── JvmTestTaskConfigurator.kt
│ ├── origin
│ │ └── VariantOrigin.kt
│ ├── reports
│ │ └── ReportsVariantApplier.kt
│ └── tasks
│ │ └── VariantReportsSet.kt
│ ├── commons
│ ├── AndroidTypes.kt
│ ├── Artifacts.kt
│ ├── Configurations.kt
│ ├── Constants.kt
│ ├── Exceptions.kt
│ ├── Naming.kt
│ ├── Paths.kt
│ ├── Plugins.kt
│ └── Types.kt
│ ├── dsl
│ ├── KoverGradlePluginDsl.kt
│ ├── KoverMergingConfig.kt
│ ├── KoverNames.kt
│ ├── KoverProjectExtension.kt
│ ├── KoverReportsConfig.kt
│ ├── KoverVariantConfig.kt
│ ├── KoverVersions.kt
│ ├── internal
│ │ ├── KoverProjectExtensionImpl.kt
│ │ ├── MergeImpl.kt
│ │ ├── ReportsImpl.kt
│ │ └── VariantsImpl.kt
│ └── tasks
│ │ └── KoverTasks.kt
│ ├── locators
│ ├── Android.kt
│ ├── Jvm.kt
│ ├── KotlinAndroidLocator.kt
│ ├── KotlinJvmLocator.kt
│ ├── KotlinMultiPlatformLocator.kt
│ └── ProvidedVariantsLocator.kt
│ ├── tasks
│ ├── reports
│ │ ├── AbstractKoverReportTask.kt
│ │ ├── KoverBinaryTask.kt
│ │ ├── KoverDoVerifyTask.kt
│ │ ├── KoverFormatCoverageTask.kt
│ │ ├── KoverHtmlTask.kt
│ │ ├── KoverVerifyTask.kt
│ │ └── KoverXmlTask.kt
│ └── services
│ │ ├── KoverAgentJarTask.kt
│ │ ├── KoverArtifactGenerationTask.kt
│ │ └── KoverPrintLogTask.kt
│ ├── tools
│ ├── CoverageTool.kt
│ ├── Verification.kt
│ ├── jacoco
│ │ ├── Commons.kt
│ │ ├── JacocoHtmlOrXmlReport.kt
│ │ ├── JacocoOnlineInstrumentation.kt
│ │ ├── JacocoTool.kt
│ │ ├── PrintCoverage.kt
│ │ └── Verification.kt
│ └── kover
│ │ ├── Evaluation.kt
│ │ ├── IcReport.kt
│ │ ├── KoverFeaturesIntegration.kt
│ │ ├── KoverHtmlOrXmlReport.kt
│ │ ├── KoverOnlineInstrumentation.kt
│ │ └── KoverTool.kt
│ └── util
│ ├── DynamicBean.kt
│ ├── Util.kt
│ └── Versions.kt
├── kover-jvm-agent
├── build.gradle.kts
├── docs
│ └── index.md
└── src
│ └── main
│ └── java
│ └── kotlinx
│ └── kover
│ └── jvmagent
│ ├── IntellijIntegration.java
│ ├── KoverAgentSettings.java
│ └── KoverJvmAgentPremain.java
├── kover-maven-plugin
├── build.gradle.kts
├── docs
│ └── index.md
├── examples
│ ├── additional-binary-report
│ │ ├── additional.ic
│ │ ├── pom.xml
│ │ └── src
│ │ │ ├── main
│ │ │ └── kotlin
│ │ │ │ └── Main.kt
│ │ │ └── test
│ │ │ └── kotlin
│ │ │ └── MainKtTest.kt
│ ├── all-goals
│ │ ├── pom.xml
│ │ └── src
│ │ │ ├── main
│ │ │ └── kotlin
│ │ │ │ └── Main.kt
│ │ │ └── test
│ │ │ └── kotlin
│ │ │ └── MainKtTest.kt
│ ├── change-agent-line
│ │ ├── pom.xml
│ │ └── src
│ │ │ ├── main
│ │ │ └── kotlin
│ │ │ │ └── Main.kt
│ │ │ └── test
│ │ │ └── kotlin
│ │ │ └── MainKtTest.kt
│ ├── change-paths
│ │ ├── pom.xml
│ │ └── src
│ │ │ ├── main
│ │ │ └── kotlin
│ │ │ │ └── Main.kt
│ │ │ └── test
│ │ │ └── kotlin
│ │ │ └── MainKtTest.kt
│ ├── charset
│ │ ├── pom.xml
│ │ └── src
│ │ │ ├── main
│ │ │ └── kotlin
│ │ │ │ └── Main.kt
│ │ │ └── test
│ │ │ └── kotlin
│ │ │ └── MainKtTest.kt
│ ├── exclude-instrumentation
│ │ ├── pom.xml
│ │ └── src
│ │ │ ├── main
│ │ │ └── kotlin
│ │ │ │ ├── Main.kt
│ │ │ │ └── SecondClass.kt
│ │ │ └── test
│ │ │ └── kotlin
│ │ │ └── MainKtTest.kt
│ ├── filters-common
│ │ ├── pom.xml
│ │ └── src
│ │ │ ├── main
│ │ │ └── kotlin
│ │ │ │ ├── ExcludedByAnnotation.kt
│ │ │ │ ├── ExcludedByName.kt
│ │ │ │ ├── ExcludedByParent.kt
│ │ │ │ └── Main.kt
│ │ │ └── test
│ │ │ └── kotlin
│ │ │ └── MainKtTest.kt
│ ├── filters-rules
│ │ ├── pom.xml
│ │ └── src
│ │ │ ├── main
│ │ │ └── kotlin
│ │ │ │ ├── Main.kt
│ │ │ │ ├── SecondClass.kt
│ │ │ │ └── ThirdClass.kt
│ │ │ └── test
│ │ │ └── kotlin
│ │ │ └── MainKtTest.kt
│ ├── instrumentation-only
│ │ ├── pom.xml
│ │ └── src
│ │ │ ├── main
│ │ │ └── kotlin
│ │ │ │ └── Main.kt
│ │ │ └── test
│ │ │ └── kotlin
│ │ │ └── MainKtTest.kt
│ ├── logs
│ │ ├── pom.xml
│ │ └── src
│ │ │ ├── main
│ │ │ └── kotlin
│ │ │ │ └── Main.kt
│ │ │ └── test
│ │ │ └── kotlin
│ │ │ └── MainKtTest.kt
│ ├── merged-report
│ │ ├── child1-tests
│ │ │ ├── pom.xml
│ │ │ └── src
│ │ │ │ ├── main
│ │ │ │ └── kotlin
│ │ │ │ │ └── TestUtils.kt
│ │ │ │ └── test
│ │ │ │ └── kotlin
│ │ │ │ └── Child1Tests.kt
│ │ ├── child1
│ │ │ ├── pom.xml
│ │ │ └── src
│ │ │ │ └── main
│ │ │ │ └── kotlin
│ │ │ │ └── Child1Class.kt
│ │ ├── child2-2
│ │ │ ├── pom.xml
│ │ │ └── src
│ │ │ │ └── main
│ │ │ │ └── kotlin
│ │ │ │ └── Child2ExtraClass.kt
│ │ ├── child2
│ │ │ ├── pom.xml
│ │ │ └── src
│ │ │ │ └── main
│ │ │ │ └── kotlin
│ │ │ │ └── Child2Class.kt
│ │ ├── pom.xml
│ │ └── report
│ │ │ └── pom.xml
│ ├── multidir
│ │ ├── pom.xml
│ │ └── src
│ │ │ ├── extra
│ │ │ └── Secondary.kt
│ │ │ ├── main
│ │ │ └── kotlin
│ │ │ │ └── Main.kt
│ │ │ └── test
│ │ │ └── kotlin
│ │ │ └── MainKtTest.kt
│ ├── prepend-agent-line
│ │ ├── pom.xml
│ │ └── src
│ │ │ ├── main
│ │ │ └── kotlin
│ │ │ │ └── Main.kt
│ │ │ └── test
│ │ │ └── kotlin
│ │ │ └── MainKtTest.kt
│ ├── site
│ │ ├── pom.xml
│ │ └── src
│ │ │ ├── main
│ │ │ └── kotlin
│ │ │ │ └── Main.kt
│ │ │ └── test
│ │ │ └── kotlin
│ │ │ └── MainKtTest.kt
│ ├── skip-config
│ │ ├── pom.xml
│ │ └── src
│ │ │ ├── main
│ │ │ └── kotlin
│ │ │ │ └── Main.kt
│ │ │ └── test
│ │ │ └── kotlin
│ │ │ └── MainKtTest.kt
│ ├── skip-property
│ │ ├── pom.xml
│ │ └── src
│ │ │ ├── main
│ │ │ └── kotlin
│ │ │ │ └── Main.kt
│ │ │ └── test
│ │ │ └── kotlin
│ │ │ └── MainKtTest.kt
│ ├── titles
│ │ ├── pom.xml
│ │ └── src
│ │ │ ├── main
│ │ │ └── kotlin
│ │ │ │ └── Main.kt
│ │ │ └── test
│ │ │ └── kotlin
│ │ │ └── MainKtTest.kt
│ ├── verify-error
│ │ ├── pom.xml
│ │ └── src
│ │ │ ├── main
│ │ │ └── kotlin
│ │ │ │ └── Main.kt
│ │ │ └── test
│ │ │ └── kotlin
│ │ │ └── MainKtTest.kt
│ ├── verify-pass
│ │ ├── pom.xml
│ │ └── src
│ │ │ ├── main
│ │ │ └── kotlin
│ │ │ │ └── Main.kt
│ │ │ └── test
│ │ │ └── kotlin
│ │ │ └── MainKtTest.kt
│ └── verify-warn
│ │ ├── pom.xml
│ │ └── src
│ │ ├── main
│ │ └── kotlin
│ │ │ └── Main.kt
│ │ └── test
│ │ └── kotlin
│ │ └── MainKtTest.kt
└── src
│ ├── functionalTest
│ ├── kotlin
│ │ └── kotlinx
│ │ │ └── kover
│ │ │ └── maven
│ │ │ └── plugin
│ │ │ └── tests
│ │ │ └── functional
│ │ │ ├── cases
│ │ │ └── MavenPluginTests.kt
│ │ │ └── framework
│ │ │ ├── BuildConstants.kt
│ │ │ ├── Checker.kt
│ │ │ ├── CheckerContext.kt
│ │ │ ├── CheckerContextImpl.kt
│ │ │ ├── MavenAsserts.kt
│ │ │ ├── MavenTestRunner.kt
│ │ │ └── SystemProperties.kt
│ ├── resources
│ │ └── simplelogger.properties
│ └── templates
│ │ ├── settings.xml
│ │ └── tests
│ │ └── kotlin-empty-config
│ │ ├── pom.xml
│ │ └── src
│ │ ├── main
│ │ └── kotlin
│ │ │ └── Main.kt
│ │ └── test
│ │ └── kotlin
│ │ └── MainKtTest.kt
│ └── main
│ └── kotlin
│ └── kotlinx
│ └── kover
│ └── maven
│ └── plugin
│ ├── CommonTypes.kt
│ ├── Constants.kt
│ └── mojo
│ ├── ArtifactMojo.kt
│ ├── HtmlReportMojo.kt
│ ├── IcReportMojo.kt
│ ├── KoverInstrumentMojo.kt
│ ├── LogReportMojo.kt
│ ├── VerifyMojo.kt
│ ├── XmlReportMojo.kt
│ └── abstracts
│ ├── AbstractCoverageTaskMojo.kt
│ ├── AbstractKoverMojo.kt
│ └── AbstractReportTaskMojo.kt
├── kover-offline-runtime
├── build.gradle.kts
├── docs
│ └── index.md
├── examples
│ └── runtime-api
│ │ ├── build.gradle.kts
│ │ ├── settings.gradle.kts
│ │ └── src
│ │ ├── main
│ │ └── kotlin
│ │ │ ├── DataClass.kt
│ │ │ └── Main.kt
│ │ └── test
│ │ └── kotlin
│ │ └── Tests.kt
└── src
│ └── main
│ └── java
│ └── kotlinx
│ └── kover
│ └── offline
│ └── runtime
│ ├── KoverInit.java
│ └── api
│ ├── BranchCoverage.java
│ ├── ClassCoverage.java
│ ├── KoverRuntime.java
│ ├── LineCoverage.java
│ └── MethodCoverage.java
└── settings.gradle.kts
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature request
3 | about: Suggest an idea for Kover
4 | title: ''
5 | labels: 'Feature, S: untriaged'
6 | assignees: 'shanshin'
7 |
8 | ---
9 |
10 | **What is your use-case and why do you need this feature?**
11 |
12 | **Describe the solution you'd like**
13 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/question.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Question
3 | about: Find out how to use the plugin
4 | title: ''
5 | labels: 'Question, S: untriaged'
6 | assignees: 'shanshin'
7 |
8 | ---
9 |
10 | **Describe what you would like to clarify about Kover**
11 |
--------------------------------------------------------------------------------
/.github/workflows/new-issue.yml:
--------------------------------------------------------------------------------
1 | name: Add new issue to project
2 |
3 | on:
4 | issues:
5 | types:
6 | - opened
7 |
8 | jobs:
9 | add-to-project:
10 | name: Add issue to project
11 | runs-on: ubuntu-latest
12 | steps:
13 | - uses: actions/add-to-project@v0.5.0
14 | with:
15 | project-url: https://github.com/orgs/Kotlin/projects/3
16 | github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
17 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 |
3 | # IntelliJ files
4 | **/.idea/*
5 | out/
6 | *.iml
7 |
8 | # Gradle files
9 | build/
10 | .gradle/
11 |
12 | # generated dokka documentation
13 | /docs/gradle-plugin/dokka/
14 |
--------------------------------------------------------------------------------
/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | ## Code of Conduct
2 |
3 | This project and the corresponding community is governed by the [JetBrains Open Source and Community Code of Conduct](https://confluence.jetbrains.com/display/ALL/JetBrains+Open+Source+and+Community+Code+of+Conduct). Please make sure you read it.
4 |
--------------------------------------------------------------------------------
/build-logic/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | `kotlin-dsl`
3 | }
4 |
5 | kotlin {
6 | jvmToolchain {
7 | languageVersion = JavaLanguageVersion.of(8)
8 | }
9 | }
10 |
11 | repositories {
12 | mavenCentral()
13 | }
14 |
--------------------------------------------------------------------------------
/build-logic/gradle.properties:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/build-logic/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | rootProject.name = "build-logic"
2 |
--------------------------------------------------------------------------------
/docs/_config.yml:
--------------------------------------------------------------------------------
1 | remote_theme: pages-themes/slate@v0.2.0
2 | plugins:
3 | - jekyll-remote-theme # add this line to the plugins list if you already have one
4 | lsi: false
5 | safe: true
6 | highlighter: rouge
7 | incremental: false
8 | gist:
9 | noscript: false
10 | kramdown:
11 | input: GFM
12 | hard_wrap: false
13 | syntax_highlighter: rouge
14 |
--------------------------------------------------------------------------------
/docs/assets/css/style.scss:
--------------------------------------------------------------------------------
1 | ---
2 | ---
3 |
4 | @import "{{ site.theme }}";
5 | .inner{max-width:1280px;}
6 | #project_title {
7 | visibility: hidden;
8 | position: relative;
9 | }
10 | #project_title:after {
11 | visibility: visible;
12 | position: absolute;
13 | top: 0;
14 | left: 0;
15 | content: "Kover - Kotlin Coverage Tool";
16 | }
17 |
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | version=0.9.2-SNAPSHOT
2 | group=org.jetbrains.kotlinx
3 |
4 | # version of the latest release
5 | kover.release.version=0.9.1
6 | kotlin.code.style=official
7 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Kotlin/kotlinx-kover/49fe12ac3646f99a65e1396d025166e7266aef25/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
4 | networkTimeout=10000
5 | validateDistributionUrl=true
6 | zipStoreBase=GRADLE_USER_HOME
7 | zipStorePath=wrapper/dists
8 |
--------------------------------------------------------------------------------
/kover-cli/README.md:
--------------------------------------------------------------------------------
1 | # Kover Command Line Interface
2 |
3 | This single jar artifact allows using some of the functionality of Kover Toolset through command-line calls.
4 |
5 | [CLI documentation](../docs/cli/index.md)
--------------------------------------------------------------------------------
/kover-cli/src/test/resources/classes/org/jetbrains/kover/test/DataClass.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Kotlin/kotlinx-kover/49fe12ac3646f99a65e1396d025166e7266aef25/kover-cli/src/test/resources/classes/org/jetbrains/kover/test/DataClass.class
--------------------------------------------------------------------------------
/kover-cli/src/test/resources/classes/org/jetbrains/kover/test/ExampleClass.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Kotlin/kotlinx-kover/49fe12ac3646f99a65e1396d025166e7266aef25/kover-cli/src/test/resources/classes/org/jetbrains/kover/test/ExampleClass.class
--------------------------------------------------------------------------------
/kover-cli/src/test/resources/merge/test1.ic:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Kotlin/kotlinx-kover/49fe12ac3646f99a65e1396d025166e7266aef25/kover-cli/src/test/resources/merge/test1.ic
--------------------------------------------------------------------------------
/kover-cli/src/test/resources/merge/test2.ic:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Kotlin/kotlinx-kover/49fe12ac3646f99a65e1396d025166e7266aef25/kover-cli/src/test/resources/merge/test2.ic
--------------------------------------------------------------------------------
/kover-cli/src/test/resources/sources/org.jetbrains.kover.test/DataClass.kt:
--------------------------------------------------------------------------------
1 | package org.jetbrains.kover.test
2 |
3 | data class DataClass(val a: Int, val b: Long)
--------------------------------------------------------------------------------
/kover-cli/src/test/resources/sources/org.jetbrains.kover.test/ExampleClass.kt:
--------------------------------------------------------------------------------
1 | package org.jetbrains.kover.test
2 |
3 | class ExampleClass(
4 | val a: String,
5 | var b: String
6 | ) {
7 |
8 | val i: Int = intFun()
9 | val j: Int = intFun()
10 |
11 | init {
12 | println("AAA")
13 | }
14 |
15 | fun fun1() {
16 | println("fun1")
17 | }
18 |
19 | fun fun2() {
20 | println("fun2")
21 | }
22 |
23 | private fun intFun(): Int {
24 | return 10
25 | }
26 |
27 | }
--------------------------------------------------------------------------------
/kover-cli/src/test/resources/test.ic:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Kotlin/kotlinx-kover/49fe12ac3646f99a65e1396d025166e7266aef25/kover-cli/src/test/resources/test.ic
--------------------------------------------------------------------------------
/kover-features-jvm/src/main/resources/kover.version:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Kotlin/kotlinx-kover/49fe12ac3646f99a65e1396d025166e7266aef25/kover-features-jvm/src/main/resources/kover.version
--------------------------------------------------------------------------------
/kover-gradle-plugin/docs/html.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Kotlin/kotlinx-kover/49fe12ac3646f99a65e1396d025166e7266aef25/kover-gradle-plugin/docs/html.png
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/dynamic/app/src/main/java/kotlinx/kover/test/android/DebugUtil.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object DebugUtil {
4 | fun log(message: String) {
5 | println("DEBUG: $message")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/dynamic/app/src/main/java/kotlinx/kover/test/android/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import android.os.Bundle
4 | import android.app.Activity
5 |
6 | class MainActivity : Activity() {
7 |
8 | override fun onCreate(savedInstanceState: Bundle?) {
9 | super.onCreate(savedInstanceState)
10 | setContentView(R.layout.activity_main)
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/dynamic/app/src/main/java/kotlinx/kover/test/android/Maths.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object Maths {
4 | fun sum(a: Int, b: Int): Int {
5 | DebugUtil.log("invoked sum")
6 | return a + b
7 | }
8 |
9 | fun sub(a: Int, b: Int): Int {
10 | DebugUtil.log("invoked sub")
11 | return a - b
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/dynamic/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/dynamic/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Android Test
3 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/dynamic/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/dynamic/app/src/test/java/kotlinx/kover/test/android/LocalTests.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 |
8 | class LocalTests {
9 | @Test
10 | fun testDebugUtils() {
11 | assertEquals(3, Maths.sum(1, 2))
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/dynamic/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | id("com.android.application") version "7.4.0" apply false
3 | id("com.android.library") version "7.4.0" apply false
4 | id ("com.android.dynamic-feature") version "7.4.0" apply false
5 | id("org.jetbrains.kotlin.android") version "1.8.20" apply false
6 | id("org.jetbrains.kotlinx.kover") version "0.9.1" apply false
7 | }
8 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/dynamic/dyn/src/main/java/kotlinx/kover/test/android/dyn/DebugUtil.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android.dyn
2 |
3 | object DebugUtil {
4 | fun log(message: String) {
5 | println("LIB DEBUG: $message")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/dynamic/dyn/src/main/java/kotlinx/kover/test/android/dyn/MagicFactory.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android.dyn
2 |
3 | object MagicFactory {
4 | fun generate(): Int {
5 | DebugUtil.log("generate Int")
6 | return 42
7 | }
8 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/dynamic/dyn/src/test/java/kotlinx/kover/test/android/LocalLibTests.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import kotlinx.kover.test.android.dyn.MagicFactory
4 | import org.junit.Test
5 |
6 | import org.junit.Assert.*
7 |
8 |
9 | class LocalLibTests {
10 | @Test
11 | fun testDebugUtils() {
12 | assertEquals(42, MagicFactory.generate())
13 | }
14 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/dynamic/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | gradlePluginPortal()
6 | }
7 | }
8 |
9 | dependencyResolutionManagement {
10 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11 | repositories {
12 | google()
13 | mavenCentral()
14 | gradlePluginPortal()
15 | }
16 | }
17 |
18 | rootProject.name = "android_dynamic"
19 | include(":app", ":dyn")
20 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/flavors/app/src/debug/kotlin/kotlinx/test/android/DebugAppClass.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object DebugAppClass {
4 | fun foo() {
5 | println("LIB DEBUG")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/flavors/app/src/main/java/kotlinx/kover/test/android/DebugUtil.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object DebugUtil {
4 | fun log(message: String) {
5 | println("DEBUG: $message")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/flavors/app/src/main/java/kotlinx/kover/test/android/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import android.os.Bundle
4 | import android.app.Activity
5 |
6 | class MainActivity : Activity() {
7 |
8 | override fun onCreate(savedInstanceState: Bundle?) {
9 | super.onCreate(savedInstanceState)
10 | setContentView(R.layout.activity_main)
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/flavors/app/src/main/java/kotlinx/kover/test/android/Maths.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object Maths {
4 | fun sum(a: Int, b: Int): Int {
5 | DebugUtil.log("invoked sum")
6 | return a + b
7 | }
8 |
9 | fun sub(a: Int, b: Int): Int {
10 | DebugUtil.log("invoked sub")
11 | return a - b
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/flavors/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/flavors/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Android Test
3 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/flavors/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/flavors/app/src/test/java/kotlinx/kover/test/android/LocalTests.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 |
8 | class LocalTests {
9 | @Test
10 | fun testDebugUtils() {
11 | assertEquals(3, Maths.sum(1, 2))
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/flavors/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | id("com.android.application") version "7.4.0" apply false
3 | id("com.android.library") version "7.4.0" apply false
4 | id("org.jetbrains.kotlin.android") version "1.8.20" apply false
5 | id("org.jetbrains.kotlinx.kover") version "0.9.1" apply false
6 | }
7 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/flavors/lib/src/debug/kotlin/kotlinx/test/android/lib/DebugLibClass.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android.lib
2 |
3 | object DebugLibClass {
4 | fun foo() {
5 | println("LIB DEBUG")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/flavors/lib/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/flavors/lib/src/main/java/kotlinx/kover/test/android/lib/DebugUtil.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android.lib
2 |
3 | object DebugUtil {
4 | fun log(message: String) {
5 | println("LIB DEBUG: $message")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/flavors/lib/src/main/java/kotlinx/kover/test/android/lib/MagicFactory.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android.lib
2 |
3 | object MagicFactory {
4 | fun generate(): Int {
5 | DebugUtil.log("generate Int")
6 | return 42
7 | }
8 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/flavors/lib/src/test/java/kotlinx/kover/test/android/LocalLibTests.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import kotlinx.kover.test.android.lib.MagicFactory
4 | import org.junit.Test
5 |
6 | import org.junit.Assert.*
7 |
8 |
9 | class LocalLibTests {
10 | @Test
11 | fun testDebugUtils() {
12 | assertEquals(42, MagicFactory.generate())
13 | }
14 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/flavors/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | gradlePluginPortal()
6 | }
7 | }
8 |
9 | dependencyResolutionManagement {
10 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11 | repositories {
12 | google()
13 | mavenCentral()
14 | gradlePluginPortal()
15 | }
16 | }
17 |
18 | rootProject.name = "multiproject-joined"
19 | include(":app", ":lib")
20 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/minimal_groovy/app/src/main/java/kotlinx/kover/test/android/DebugUtil.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object DebugUtil {
4 | fun log(message: String) {
5 | println("DEBUG: $message")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/minimal_groovy/app/src/main/java/kotlinx/kover/test/android/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import android.os.Bundle
4 | import android.app.Activity
5 |
6 | class MainActivity : Activity() {
7 |
8 | override fun onCreate(savedInstanceState: Bundle?) {
9 | super.onCreate(savedInstanceState)
10 | setContentView(R.layout.activity_main)
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/minimal_groovy/app/src/main/java/kotlinx/kover/test/android/Maths.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object Maths {
4 | fun sum(a: Int, b: Int): Int {
5 | DebugUtil.log("invoked sum")
6 | return a + b
7 | }
8 |
9 | fun sub(a: Int, b: Int): Int {
10 | DebugUtil.log("invoked sub")
11 | return a - b
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/minimal_groovy/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/minimal_groovy/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Android Test
3 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/minimal_groovy/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/minimal_groovy/app/src/test/java/kotlinx/kover/test/android/LocalTests.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 |
8 | class LocalTests {
9 | @Test
10 | fun testDebugUtils() {
11 | assertEquals(3, Maths.sum(1, 2))
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/minimal_groovy/build.gradle:
--------------------------------------------------------------------------------
1 | plugins {
2 | id 'com.android.application' version '7.4.0' apply false
3 | id 'com.android.library' version '7.4.0' apply false
4 | id 'org.jetbrains.kotlin.android' version '1.8.20' apply false
5 | id 'org.jetbrains.kotlinx.kover' version '0.9.1' apply false
6 | }
7 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/minimal_groovy/settings.gradle:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | gradlePluginPortal()
6 | }
7 | }
8 |
9 | dependencyResolutionManagement {
10 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11 | repositories {
12 | google()
13 | mavenCentral()
14 | gradlePluginPortal()
15 | }
16 | }
17 |
18 | rootProject.name = "android_groovy"
19 | include ':app'
20 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/minimal_kts/app/src/main/java/kotlinx/kover/test/android/DebugUtil.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object DebugUtil {
4 | fun log(message: String) {
5 | println("DEBUG: $message")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/minimal_kts/app/src/main/java/kotlinx/kover/test/android/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import android.os.Bundle
4 | import android.app.Activity
5 |
6 | class MainActivity : Activity() {
7 |
8 | override fun onCreate(savedInstanceState: Bundle?) {
9 | super.onCreate(savedInstanceState)
10 | setContentView(R.layout.activity_main)
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/minimal_kts/app/src/main/java/kotlinx/kover/test/android/Maths.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object Maths {
4 | fun sum(a: Int, b: Int): Int {
5 | DebugUtil.log("invoked sum")
6 | return a + b
7 | }
8 |
9 | fun sub(a: Int, b: Int): Int {
10 | DebugUtil.log("invoked sub")
11 | return a - b
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/minimal_kts/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/minimal_kts/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Android Test
3 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/minimal_kts/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/minimal_kts/app/src/test/java/kotlinx/kover/test/android/LocalTests.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 |
8 | class LocalTests {
9 | @Test
10 | fun testDebugUtils() {
11 | assertEquals(3, Maths.sum(1, 2))
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/minimal_kts/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | id("com.android.application") version "7.4.0" apply false
3 | id("com.android.library") version "7.4.0" apply false
4 | id("org.jetbrains.kotlin.android") version "1.8.20" apply false
5 | id("org.jetbrains.kotlinx.kover") version "0.9.1" apply false
6 | }
7 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/minimal_kts/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | gradlePluginPortal()
6 | }
7 | }
8 |
9 | dependencyResolutionManagement {
10 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11 | repositories {
12 | google()
13 | mavenCentral()
14 | gradlePluginPortal()
15 | }
16 | }
17 |
18 | rootProject.name = "android_kts"
19 | include(":app")
20 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiplatform/app/src/debug/kotlin/kotlinx/test/android/DebugAppClass.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object DebugAppClass {
4 | fun foo() {
5 | println("LIB DEBUG")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiplatform/app/src/jvmMain/kotlin/kotlinx/test/jvm/JvmClass.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.jvm
2 |
3 | object JvmClass {
4 | fun foo() {
5 | println("JVM")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiplatform/app/src/jvmTest/kotlin/kotlinx/test/jvm/JvmTest.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.jvm
2 |
3 | import kotlin.test.Test
4 |
5 | object JvmTest {
6 |
7 | @Test
8 | fun test() {
9 | JvmClass.foo()
10 | println("JVM")
11 | }
12 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiplatform/app/src/main/java/kotlinx/kover/test/android/DebugUtil.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object DebugUtil {
4 | fun log(message: String) {
5 | println("DEBUG: $message")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiplatform/app/src/main/java/kotlinx/kover/test/android/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import android.os.Bundle
4 | import android.app.Activity
5 |
6 | class MainActivity : Activity() {
7 |
8 | override fun onCreate(savedInstanceState: Bundle?) {
9 | super.onCreate(savedInstanceState)
10 | setContentView(R.layout.activity_main)
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiplatform/app/src/main/java/kotlinx/kover/test/android/Maths.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object Maths {
4 | fun sum(a: Int, b: Int): Int {
5 | DebugUtil.log("invoked sum")
6 | return a + b
7 | }
8 |
9 | fun sub(a: Int, b: Int): Int {
10 | DebugUtil.log("invoked sub")
11 | return a - b
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiplatform/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiplatform/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Android Test
3 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiplatform/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiplatform/app/src/test/java/kotlinx/kover/test/android/LocalTests.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 |
8 | class LocalTests {
9 | @Test
10 | fun testDebugUtils() {
11 | assertEquals(3, Maths.sum(1, 2))
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiplatform/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | id("com.android.application") version "7.4.0" apply false
3 | id("com.android.library") version "7.4.0" apply false
4 | kotlin("multiplatform") version ("1.8.20") apply false
5 | id("org.jetbrains.kotlinx.kover") version "0.9.1"
6 | }
7 |
8 | dependencies {
9 | kover(project(":app"))
10 | }
11 |
12 | kover {
13 | currentProject {
14 | createVariant("custom") { }
15 | }
16 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiplatform/lib/src/debug/kotlin/kotlinx/test/android/lib/DebugLibClass.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android.lib
2 |
3 | object DebugLibClass {
4 | fun foo() {
5 | println("LIB DEBUG")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiplatform/lib/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiplatform/lib/src/main/java/kotlinx/kover/test/android/lib/DebugUtil.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android.lib
2 |
3 | object DebugUtil {
4 | fun log(message: String) {
5 | println("LIB DEBUG: $message")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiplatform/lib/src/main/java/kotlinx/kover/test/android/lib/MagicFactory.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android.lib
2 |
3 | object MagicFactory {
4 | fun generate(): Int {
5 | DebugUtil.log("generate Int")
6 | return 42
7 | }
8 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiplatform/lib/src/test/java/kotlinx/kover/test/android/LocalLibTests.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import kotlinx.kover.test.android.lib.MagicFactory
4 | import org.junit.Test
5 |
6 | import org.junit.Assert.*
7 |
8 |
9 | class LocalLibTests {
10 | @Test
11 | fun testDebugUtils() {
12 | assertEquals(42, MagicFactory.generate())
13 | }
14 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiplatform/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | gradlePluginPortal()
6 | }
7 | }
8 |
9 | dependencyResolutionManagement {
10 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11 | repositories {
12 | google()
13 | mavenCentral()
14 | gradlePluginPortal()
15 | }
16 | }
17 |
18 | rootProject.name = "multiproject-joined"
19 | include(":app", ":lib")
20 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiproject-custom/app/src/main/java/kotlinx/kover/test/android/DebugUtil.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object DebugUtil {
4 | fun log(message: String) {
5 | println("DEBUG: $message")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiproject-custom/app/src/main/java/kotlinx/kover/test/android/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import android.os.Bundle
4 | import android.app.Activity
5 |
6 | class MainActivity : Activity() {
7 |
8 | override fun onCreate(savedInstanceState: Bundle?) {
9 | super.onCreate(savedInstanceState)
10 | setContentView(R.layout.activity_main)
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiproject-custom/app/src/main/java/kotlinx/kover/test/android/Maths.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object Maths {
4 | fun sum(a: Int, b: Int): Int {
5 | DebugUtil.log("invoked sum")
6 | return a + b
7 | }
8 |
9 | fun sub(a: Int, b: Int): Int {
10 | DebugUtil.log("invoked sub")
11 | return a - b
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiproject-custom/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiproject-custom/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Android Test
3 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiproject-custom/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiproject-custom/app/src/test/java/kotlinx/kover/test/android/LocalTests.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 |
8 | class LocalTests {
9 | @Test
10 | fun testDebugUtils() {
11 | assertEquals(3, Maths.sum(1, 2))
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiproject-custom/lib/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiproject-custom/lib/src/main/java/kotlinx/kover/test/android/lib/DebugUtil.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android.lib
2 |
3 | object DebugUtil {
4 | fun log(message: String) {
5 | println("LIB DEBUG: $message")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiproject-custom/lib/src/main/java/kotlinx/kover/test/android/lib/MagicFactory.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android.lib
2 |
3 | object MagicFactory {
4 | fun generate(): Int {
5 | DebugUtil.log("generate Int")
6 | return 42
7 | }
8 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiproject-custom/lib/src/test/java/kotlinx/kover/test/android/LocalLibTests.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import kotlinx.kover.test.android.lib.MagicFactory
4 | import org.junit.Test
5 |
6 | import org.junit.Assert.*
7 |
8 |
9 | class LocalLibTests {
10 | @Test
11 | fun testDebugUtils() {
12 | assertEquals(42, MagicFactory.generate())
13 | }
14 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiproject-custom/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | gradlePluginPortal()
6 | }
7 | }
8 |
9 | dependencyResolutionManagement {
10 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11 | repositories {
12 | google()
13 | mavenCentral()
14 | gradlePluginPortal()
15 | }
16 | }
17 |
18 | rootProject.name = "multiproject-custom"
19 | include(":app", ":lib")
20 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiproject/app/src/main/java/kotlinx/kover/test/android/DebugUtil.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object DebugUtil {
4 | fun log(message: String) {
5 | println("DEBUG: $message")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiproject/app/src/main/java/kotlinx/kover/test/android/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import android.os.Bundle
4 | import android.app.Activity
5 |
6 | class MainActivity : Activity() {
7 |
8 | override fun onCreate(savedInstanceState: Bundle?) {
9 | super.onCreate(savedInstanceState)
10 | setContentView(R.layout.activity_main)
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiproject/app/src/main/java/kotlinx/kover/test/android/Maths.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object Maths {
4 | fun sum(a: Int, b: Int): Int {
5 | DebugUtil.log("invoked sum")
6 | return a + b
7 | }
8 |
9 | fun sub(a: Int, b: Int): Int {
10 | DebugUtil.log("invoked sub")
11 | return a - b
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiproject/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiproject/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Android Test
3 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiproject/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiproject/app/src/test/java/kotlinx/kover/test/android/LocalTests.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 |
8 | class LocalTests {
9 | @Test
10 | fun testDebugUtils() {
11 | assertEquals(3, Maths.sum(1, 2))
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiproject/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | id("com.android.application") version "7.4.0" apply false
3 | id("com.android.library") version "7.4.0" apply false
4 | id("org.jetbrains.kotlin.android") version "1.8.20" apply false
5 | id("org.jetbrains.kotlinx.kover") version "0.9.1" apply false
6 | }
7 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiproject/lib/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiproject/lib/src/main/java/kotlinx/kover/test/android/lib/DebugUtil.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android.lib
2 |
3 | object DebugUtil {
4 | fun log(message: String) {
5 | println("LIB DEBUG: $message")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiproject/lib/src/main/java/kotlinx/kover/test/android/lib/MagicFactory.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android.lib
2 |
3 | object MagicFactory {
4 | fun generate(): Int {
5 | DebugUtil.log("generate Int")
6 | return 42
7 | }
8 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiproject/lib/src/test/java/kotlinx/kover/test/android/LocalLibTests.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import kotlinx.kover.test.android.lib.MagicFactory
4 | import org.junit.Test
5 |
6 | import org.junit.Assert.*
7 |
8 |
9 | class LocalLibTests {
10 | @Test
11 | fun testDebugUtils() {
12 | assertEquals(42, MagicFactory.generate())
13 | }
14 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/multiproject/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | gradlePluginPortal()
6 | }
7 | }
8 |
9 | dependencyResolutionManagement {
10 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11 | repositories {
12 | google()
13 | mavenCentral()
14 | gradlePluginPortal()
15 | }
16 | }
17 |
18 | rootProject.name = "android_kts"
19 | include(":app", ":lib")
20 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/variantUsage/app/src/debug/kotlin/kotlinx/test/android/DebugAppClass.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object DebugAppClass {
4 | fun foo() {
5 | println("LIB DEBUG")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/variantUsage/app/src/main/java/kotlinx/kover/test/android/DebugUtil.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object DebugUtil {
4 | fun log(message: String) {
5 | println("DEBUG: $message")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/variantUsage/app/src/main/java/kotlinx/kover/test/android/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import android.os.Bundle
4 | import android.app.Activity
5 |
6 | class MainActivity : Activity() {
7 |
8 | override fun onCreate(savedInstanceState: Bundle?) {
9 | super.onCreate(savedInstanceState)
10 | setContentView(R.layout.activity_main)
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/variantUsage/app/src/main/java/kotlinx/kover/test/android/Maths.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object Maths {
4 | fun sum(a: Int, b: Int): Int {
5 | DebugUtil.log("invoked sum")
6 | return a + b
7 | }
8 |
9 | fun sub(a: Int, b: Int): Int {
10 | DebugUtil.log("invoked sub")
11 | return a - b
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/variantUsage/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/variantUsage/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Android Test
3 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/variantUsage/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/variantUsage/app/src/test/java/kotlinx/kover/test/android/LocalTests.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 |
8 | class LocalTests {
9 | @Test
10 | fun testDebugUtils() {
11 | assertEquals(3, Maths.sum(1, 2))
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/variantUsage/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | id("com.android.application") version "7.4.0" apply false
3 | id("com.android.library") version "7.4.0" apply false
4 | id("org.jetbrains.kotlin.android") version "1.8.20" apply false
5 | id("org.jetbrains.kotlinx.kover") version "0.9.1" apply false
6 | }
7 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/variantUsage/lib/src/debug/kotlin/kotlinx/test/android/lib/DebugLibClass.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android.lib
2 |
3 | object DebugLibClass {
4 | fun foo() {
5 | println("LIB DEBUG")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/variantUsage/lib/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/variantUsage/lib/src/main/java/kotlinx/kover/test/android/lib/DebugUtil.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android.lib
2 |
3 | object DebugUtil {
4 | fun log(message: String) {
5 | println("LIB DEBUG: $message")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/variantUsage/lib/src/main/java/kotlinx/kover/test/android/lib/MagicFactory.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android.lib
2 |
3 | object MagicFactory {
4 | fun generate(): Int {
5 | DebugUtil.log("generate Int")
6 | return 42
7 | }
8 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/variantUsage/lib/src/test/java/kotlinx/kover/test/android/LocalLibTests.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import kotlinx.kover.test.android.lib.MagicFactory
4 | import org.junit.Test
5 |
6 | import org.junit.Assert.*
7 |
8 |
9 | class LocalLibTests {
10 | @Test
11 | fun testDebugUtils() {
12 | assertEquals(42, MagicFactory.generate())
13 | }
14 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/variantUsage/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | gradlePluginPortal()
6 | }
7 | }
8 |
9 | dependencyResolutionManagement {
10 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11 | repositories {
12 | google()
13 | mavenCentral()
14 | gradlePluginPortal()
15 | }
16 | }
17 |
18 | rootProject.name = "multiproject-joined"
19 | include(":app", ":lib")
20 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/with-jvm/app/src/main/java/kotlinx/kover/test/android/DebugUtil.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object DebugUtil {
4 | fun log(message: String) {
5 | println("DEBUG: $message")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/with-jvm/app/src/main/java/kotlinx/kover/test/android/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import android.os.Bundle
4 | import android.app.Activity
5 |
6 | class MainActivity : Activity() {
7 |
8 | override fun onCreate(savedInstanceState: Bundle?) {
9 | super.onCreate(savedInstanceState)
10 | setContentView(R.layout.activity_main)
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/with-jvm/app/src/main/java/kotlinx/kover/test/android/Maths.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object Maths {
4 | fun sum(a: Int, b: Int): Int {
5 | DebugUtil.log("invoked sum")
6 | return a + b
7 | }
8 |
9 | fun sub(a: Int, b: Int): Int {
10 | DebugUtil.log("invoked sub")
11 | return a - b
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/with-jvm/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/with-jvm/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Android Test
3 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/with-jvm/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/with-jvm/app/src/test/java/kotlinx/kover/test/android/LocalTests.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 |
8 | class LocalTests {
9 | @Test
10 | fun testDebugUtils() {
11 | assertEquals(3, Maths.sum(1, 2))
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/with-jvm/lib/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | kotlin("jvm")
3 | id("org.jetbrains.kotlinx.kover")
4 | }
5 |
6 | dependencies {
7 | testImplementation(kotlin("test"))
8 | }
9 |
10 | kover {
11 | currentProject {
12 | createVariant("custom") {
13 | add("jvm")
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/with-jvm/lib/src/main/kotlin/AppClasses.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.minimal
2 |
3 | class ExampleClass {
4 | fun formatInt(i: Int): String {
5 | if (i == 0) return "ZERO"
6 | return if (i > 0) {
7 | "POSITIVE=$i"
8 | } else {
9 | "NEGATIVE=${-i}"
10 | }
11 | }
12 |
13 | fun printClass() {
14 | val name = this::class.qualifiedName
15 | println(name)
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/with-jvm/lib/src/test/kotlin/TestClasses.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.minimal
2 |
3 | import kotlin.test.Test
4 |
5 | class TestClasses {
6 | @Test
7 | fun test() {
8 | ExampleClass().formatInt(50)
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/android/with-jvm/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | gradlePluginPortal()
6 | }
7 | }
8 |
9 | dependencyResolutionManagement {
10 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11 | repositories {
12 | google()
13 | mavenCentral()
14 | gradlePluginPortal()
15 | }
16 | }
17 |
18 | rootProject.name = "with-jvm"
19 | include(":app", ":lib")
20 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/jvm/copy-variant/first/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | kotlin("jvm")
3 | }
4 |
5 | dependencies {
6 | testImplementation(kotlin("test"))
7 | }
8 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/jvm/copy-variant/first/src/main/kotlin/Utils.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.merged.subproject.utils
2 |
3 | class SubprojectUtils {
4 | fun minus(a: Int, b: Int): Int {
5 | if (b < 0) return 0
6 | return a - b
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/jvm/copy-variant/first/src/main/kotlin/kotlinx/kover/examples/merged/AppClasses.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.merged
2 |
3 | class SubprojectFirstClass {
4 | fun formatInt(i: Int): String {
5 | if (i == 0) return "ZERO"
6 | return if (i > 0) {
7 | "POSITIVE=$i"
8 | } else {
9 | "NEGATIVE=${-i}"
10 | }
11 | }
12 |
13 | fun printClass() {
14 | val name = this::class.qualifiedName
15 | println(name)
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/jvm/copy-variant/first/src/main/kotlin/kotlinx/kover/examples/merged/subproject/SubpackageClasses.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.merged.subproject
2 |
3 | import kotlin.math.*
4 |
5 | class SubprojectSecondClass {
6 | fun formatDouble(d: Double): String {
7 | if (d.roundToInt().toDouble() == d) {
8 | return "INTEGER=${d.roundToInt()}"
9 | } else {
10 | return "FRACTIONAL=$d"
11 | }
12 | }
13 |
14 | fun printClass() {
15 | val name = this::class.qualifiedName
16 | println(name)
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/jvm/copy-variant/first/src/test/kotlin/TestClasses.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.merged
2 |
3 | import kotlin.test.Test
4 |
5 | class TestClasses {
6 | @Test
7 | fun testThisProject() {
8 | SubprojectFirstClass().printClass()
9 | }
10 |
11 | }
12 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/jvm/copy-variant/second/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | kotlin("jvm")
3 | }
4 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/jvm/copy-variant/second/src/main/kotlin/ClassFromSecondProject.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.merged
2 |
3 | class ClassFromSecondProject {
4 | fun foo() {
5 | println("Hello")
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/jvm/copy-variant/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | gradlePluginPortal()
4 | mavenCentral()
5 | }
6 | }
7 | rootProject.name = "copy-variant"
8 |
9 | include(":first")
10 | include(":second")
11 |
12 | dependencyResolutionManagement {
13 | repositories {
14 | mavenCentral()
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/jvm/copy-variant/src/main/kotlin/AppClasses.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.merged
2 |
3 | class ExampleClass {
4 | fun formatInt(i: Int): String {
5 | if (i == 0) return "ZERO"
6 | return if (i > 0) {
7 | "POSITIVE=$i"
8 | } else {
9 | "NEGATIVE=${-i}"
10 | }
11 | }
12 |
13 | fun printClass() {
14 | val name = this::class.qualifiedName
15 | println(name)
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/jvm/copy-variant/src/main/kotlin/kotlinx/kover/examples/merged/utils/Utils.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.merged.utils
2 |
3 | class MergedUtils {
4 | fun sum(a: Int, b: Int): Int {
5 | if (a < 0 && b < 0) return 0
6 | return a + b
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/jvm/copy-variant/src/test/kotlin/TestClasses.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.merged
2 |
3 | import kotlinx.kover.examples.merged.subproject.*
4 | import kotlin.test.Test
5 |
6 | class TestClasses {
7 | @Test
8 | fun testThisProject() {
9 | ExampleClass().formatInt(50)
10 | }
11 |
12 | @Test
13 | fun testExcludedProject() {
14 | ClassFromSecondProject().foo()
15 | }
16 |
17 | @Test
18 | fun testSubproject() {
19 | SubprojectFirstClass().formatInt(42)
20 | SubprojectSecondClass().formatDouble(4.2)
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/jvm/merged/excluded/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | kotlin("jvm")
3 | }
4 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/jvm/merged/excluded/src/main/kotlin/ClassFromExcludedProject.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.merged
2 |
3 | class ClassFromExcludedProject {
4 | fun foo() {
5 | println("Hello")
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/jvm/merged/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | gradlePluginPortal()
4 | mavenCentral()
5 | }
6 | }
7 | rootProject.name = "example-merged"
8 |
9 | include(":subproject")
10 | include(":excluded")
11 |
12 | dependencyResolutionManagement {
13 | repositories {
14 | mavenCentral()
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/jvm/merged/src/main/kotlin/AppClasses.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.merged
2 |
3 | class ExampleClass {
4 | fun formatInt(i: Int): String {
5 | if (i == 0) return "ZERO"
6 | return if (i > 0) {
7 | "POSITIVE=$i"
8 | } else {
9 | "NEGATIVE=${-i}"
10 | }
11 | }
12 |
13 | fun printClass() {
14 | val name = this::class.qualifiedName
15 | println(name)
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/jvm/merged/src/main/kotlin/kotlinx/kover/examples/merged/utils/Utils.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.merged.utils
2 |
3 | class MergedUtils {
4 | fun sum(a: Int, b: Int): Int {
5 | if (a < 0 && b < 0) return 0
6 | return a + b
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/jvm/merged/src/test/kotlin/TestClasses.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.merged
2 |
3 | import kotlinx.kover.examples.merged.subproject.*
4 | import kotlin.test.Test
5 |
6 | class TestClasses {
7 | @Test
8 | fun testThisProject() {
9 | ExampleClass().formatInt(50)
10 | }
11 |
12 | @Test
13 | fun testExcludedProject() {
14 | ClassFromExcludedProject().foo()
15 | }
16 |
17 | @Test
18 | fun testSubproject() {
19 | SubprojectFirstClass().formatInt(42)
20 | SubprojectSecondClass().formatDouble(4.2)
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/jvm/merged/subproject/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | kotlin("jvm")
3 | id("org.jetbrains.kotlinx.kover")
4 | }
5 |
6 | dependencies {
7 | testImplementation(kotlin("test"))
8 | }
9 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/jvm/merged/subproject/src/main/kotlin/Utils.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.merged.subproject.utils
2 |
3 | class SubprojectUtils {
4 | fun minus(a: Int, b: Int): Int {
5 | if (b < 0) return 0
6 | return a - b
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/jvm/merged/subproject/src/main/kotlin/kotlinx/kover/examples/merged/AppClasses.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.merged
2 |
3 | class SubprojectFirstClass {
4 | fun formatInt(i: Int): String {
5 | if (i == 0) return "ZERO"
6 | return if (i > 0) {
7 | "POSITIVE=$i"
8 | } else {
9 | "NEGATIVE=${-i}"
10 | }
11 | }
12 |
13 | fun printClass() {
14 | val name = this::class.qualifiedName
15 | println(name)
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/jvm/merged/subproject/src/main/kotlin/kotlinx/kover/examples/merged/subproject/SubpackageClasses.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.merged.subproject
2 |
3 | import kotlin.math.*
4 |
5 | class SubprojectSecondClass {
6 | fun formatDouble(d: Double): String {
7 | if (d.roundToInt().toDouble() == d) {
8 | return "INTEGER=${d.roundToInt()}"
9 | } else {
10 | return "FRACTIONAL=$d"
11 | }
12 | }
13 |
14 | fun printClass() {
15 | val name = this::class.qualifiedName
16 | println(name)
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/jvm/merged/subproject/src/test/kotlin/TestClasses.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.merged
2 |
3 | import kotlin.test.Test
4 |
5 | class TestClasses {
6 | @Test
7 | fun testThisProject() {
8 | SubprojectFirstClass().printClass()
9 | }
10 |
11 | }
12 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/jvm/single-kmp/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | kotlin("multiplatform") version "1.9.20"
3 | id("org.jetbrains.kotlinx.kover") version "0.9.1"
4 | }
5 |
6 | kotlin {
7 | jvm {
8 | withJava()
9 | }
10 | }
11 |
12 | dependencies {
13 | commonTestImplementation(kotlin("test"))
14 | }
15 |
16 | kover.reports.verify.rule {
17 | minBound(50)
18 | }
19 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/jvm/single-kmp/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | gradlePluginPortal()
4 | mavenCentral()
5 | }
6 | }
7 | rootProject.name = "example-minimal"
8 |
9 | dependencyResolutionManagement {
10 | repositories {
11 | mavenCentral()
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/jvm/single-kmp/src/commonMain/kotlin/AppClasses.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.minimal
2 |
3 | class ExampleClass {
4 | fun formatInt(i: Int): String {
5 | if (i == 0) return "ZERO"
6 | return if (i > 0) {
7 | "POSITIVE=$i"
8 | } else {
9 | "NEGATIVE=${-i}"
10 | }
11 | }
12 |
13 | fun printClass() {
14 | val name = this::class.qualifiedName
15 | println(name)
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/jvm/single-kmp/src/jvmTest/kotlin/TestClasses.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.minimal
2 |
3 | import kotlin.test.Test
4 |
5 | class TestClasses {
6 | @Test
7 | fun test() {
8 | ExampleClass().formatInt(50)
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/jvm/single/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | kotlin("jvm") version "1.7.10"
3 | id("org.jetbrains.kotlinx.kover") version "0.9.1"
4 | }
5 |
6 | dependencies {
7 | testImplementation(kotlin("test"))
8 | }
9 |
10 | kover.reports.verify.rule {
11 | minBound(50)
12 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/jvm/single/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | gradlePluginPortal()
4 | mavenCentral()
5 | }
6 | }
7 | rootProject.name = "example-minimal"
8 |
9 | dependencyResolutionManagement {
10 | repositories {
11 | mavenCentral()
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/jvm/single/src/main/kotlin/AppClasses.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.minimal
2 |
3 | class ExampleClass {
4 | fun formatInt(i: Int): String {
5 | if (i == 0) return "ZERO"
6 | return if (i > 0) {
7 | "POSITIVE=$i"
8 | } else {
9 | "NEGATIVE=${-i}"
10 | }
11 | }
12 |
13 | fun printClass() {
14 | val name = this::class.qualifiedName
15 | println(name)
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/examples/jvm/single/src/test/kotlin/TestClasses.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.minimal
2 |
3 | import kotlin.test.Test
4 |
5 | class TestClasses {
6 | @Test
7 | fun test() {
8 | ExampleClass().formatInt(50)
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/gradle-wrappers/6.8/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Kotlin/kotlinx-kover/49fe12ac3646f99a65e1396d025166e7266aef25/kover-gradle-plugin/gradle-wrappers/6.8/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/kover-gradle-plugin/gradle-wrappers/6.8/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-bin.zip
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/gradle-wrappers/8.0.1/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Kotlin/kotlinx-kover/49fe12ac3646f99a65e1396d025166e7266aef25/kover-gradle-plugin/gradle-wrappers/8.0.1/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/kover-gradle-plugin/gradle-wrappers/8.0.1/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-bin.zip
4 | networkTimeout=10000
5 | zipStoreBase=GRADLE_USER_HOME
6 | zipStorePath=wrapper/dists
7 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/kotlin/kotlinx/kover/gradle/plugin/test/functional/cases/MetadataCompatibilityTests.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.gradle.plugin.test.functional.cases
2 |
3 | import kotlinx.kover.gradle.plugin.test.functional.framework.checker.CheckerContext
4 | import kotlinx.kover.gradle.plugin.test.functional.framework.starter.TemplateTest
5 |
6 | internal class MetadataCompatibilityTests {
7 |
8 | @TemplateTest("buildsrc-usage", [":koverXmlReport"])
9 | fun CheckerContext.test() {
10 | // no-op
11 | }
12 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-class-dup/app/src/debug/kotlin/kotlinx/kover/test/android/DupClass.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package kotlinx.kover.test.android
6 |
7 | object DupClass {
8 | fun log(message: String) {
9 | println("DEBUG: $message")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-class-dup/app/src/main/kotlin/kotlinx/kover/test/android/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import android.os.Bundle
4 | import android.app.Activity
5 |
6 | class MainActivity : Activity() {
7 |
8 | override fun onCreate(savedInstanceState: Bundle?) {
9 | super.onCreate(savedInstanceState)
10 | setContentView(R.layout.activity_main)
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-class-dup/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 | Android Test
7 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-class-dup/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-class-dup/app/src/release/kotlin/kotlinx/kover/test/android/DupClass.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package kotlinx.kover.test.android
6 |
7 | object DupClass {
8 | fun log(message: String) {
9 | println("DEBUG: $message")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-class-dup/app/src/test/java/kotlinx/kover/test/android/LocalTests.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package kotlinx.kover.test.android
6 |
7 | import org.junit.Test
8 |
9 | import org.junit.Assert.*
10 |
11 |
12 | class LocalTests {
13 | @Test
14 | fun testDebugUtils() {
15 | println("test")
16 | }
17 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-class-dup/build.gradle.kts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | plugins {
6 | id("com.android.application") version "7.4.0" apply false
7 | id("com.android.library") version "7.4.0" apply false
8 | id("org.jetbrains.kotlin.android") version "1.8.20" apply false
9 | id("org.jetbrains.kotlinx.kover") version "0.7.1" apply false
10 | }
11 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-class-dup/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | gradlePluginPortal()
6 | }
7 | }
8 |
9 | dependencyResolutionManagement {
10 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11 | repositories {
12 | google()
13 | mavenCentral()
14 | gradlePluginPortal()
15 | }
16 | }
17 |
18 | rootProject.name = "android_kts"
19 | include(":app")
20 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-common-verify/app/src/main/java/kotlinx/kover/test/android/DebugUtil.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object DebugUtil {
4 | fun log(message: String) {
5 | println("DEBUG: $message")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-common-verify/app/src/main/java/kotlinx/kover/test/android/Maths.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object Maths {
4 | fun sum(a: Int, b: Int): Int {
5 | DebugUtil.log("invoked sum")
6 | return a + b
7 | }
8 |
9 | fun sub(a: Int, b: Int): Int {
10 | DebugUtil.log("invoked sub")
11 | return a - b
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-common-verify/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-common-verify/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Android Test
3 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-common-verify/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-common-verify/app/src/test/java/kotlinx/kover/test/android/LocalTests.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 |
8 | class LocalTests {
9 | @Test
10 | fun testDebugUtils() {
11 | assertEquals(3, Maths.sum(1, 2))
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-common-verify/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | id("com.android.application") version "7.4.0" apply false
3 | id("com.android.library") version "7.4.0" apply false
4 | id("org.jetbrains.kotlin.android") version "1.8.20" apply false
5 | id("org.jetbrains.kotlinx.kover") version "0.7.1" apply false
6 | }
7 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-common-verify/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | gradlePluginPortal()
6 | }
7 | }
8 |
9 | dependencyResolutionManagement {
10 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11 | repositories {
12 | google()
13 | mavenCentral()
14 | gradlePluginPortal()
15 | }
16 | }
17 |
18 | rootProject.name = "android_kts"
19 | include(":app")
20 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-compose/app/src/main/java/org/jetbrains/composetests/ComposeFunctions.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 | package org.jetbrains.composetests
5 |
6 | import androidx.compose.runtime.Composable
7 |
8 | @Composable
9 | fun Simple() {
10 | println("Hello")
11 | }
12 |
13 | @Composable
14 | fun WithParam(name: String) {
15 | println("Hello, " + name)
16 | }
17 |
18 | @Composable
19 | fun WithDefParam(name: String = "") {
20 | println("Hello, def " + name)
21 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-compose/app/src/main/java/org/jetbrains/composetests/MainActivity.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package org.jetbrains.composetests
6 |
7 | import android.os.Bundle
8 | import androidx.activity.ComponentActivity
9 |
10 | class MainActivity : ComponentActivity() {
11 | override fun onCreate(savedInstanceState: Bundle?) {
12 | super.onCreate(savedInstanceState)
13 |
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-compose/app/src/main/res/mipmap-anydpi/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-compose/app/src/main/res/mipmap-anydpi/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-compose/app/src/main/res/mipmap-hdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Kotlin/kotlinx-kover/49fe12ac3646f99a65e1396d025166e7266aef25/kover-gradle-plugin/src/functionalTest/templates/builds/android-compose/app/src/main/res/mipmap-hdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-compose/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Kotlin/kotlinx-kover/49fe12ac3646f99a65e1396d025166e7266aef25/kover-gradle-plugin/src/functionalTest/templates/builds/android-compose/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-compose/app/src/main/res/mipmap-mdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Kotlin/kotlinx-kover/49fe12ac3646f99a65e1396d025166e7266aef25/kover-gradle-plugin/src/functionalTest/templates/builds/android-compose/app/src/main/res/mipmap-mdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-compose/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Kotlin/kotlinx-kover/49fe12ac3646f99a65e1396d025166e7266aef25/kover-gradle-plugin/src/functionalTest/templates/builds/android-compose/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-compose/app/src/main/res/mipmap-xhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Kotlin/kotlinx-kover/49fe12ac3646f99a65e1396d025166e7266aef25/kover-gradle-plugin/src/functionalTest/templates/builds/android-compose/app/src/main/res/mipmap-xhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-compose/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Kotlin/kotlinx-kover/49fe12ac3646f99a65e1396d025166e7266aef25/kover-gradle-plugin/src/functionalTest/templates/builds/android-compose/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-compose/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Kotlin/kotlinx-kover/49fe12ac3646f99a65e1396d025166e7266aef25/kover-gradle-plugin/src/functionalTest/templates/builds/android-compose/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-compose/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Kotlin/kotlinx-kover/49fe12ac3646f99a65e1396d025166e7266aef25/kover-gradle-plugin/src/functionalTest/templates/builds/android-compose/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-compose/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Kotlin/kotlinx-kover/49fe12ac3646f99a65e1396d025166e7266aef25/kover-gradle-plugin/src/functionalTest/templates/builds/android-compose/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-compose/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Kotlin/kotlinx-kover/49fe12ac3646f99a65e1396d025166e7266aef25/kover-gradle-plugin/src/functionalTest/templates/builds/android-compose/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-compose/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 | ComposeTests
7 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-compose/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-compose/build.gradle.kts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
6 | plugins {
7 | alias(libs.plugins.android.application) apply false
8 | alias(libs.plugins.jetbrains.kotlin.android) apply false
9 | id("org.jetbrains.kotlinx.kover") version "0.8.1" apply false
10 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-inverse-order/app/src/main/java/kotlinx/kover/test/android/DebugUtil.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object DebugUtil {
4 | fun log(message: String) {
5 | println("DEBUG: $message")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-inverse-order/app/src/main/java/kotlinx/kover/test/android/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import android.os.Bundle
4 | import android.app.Activity
5 |
6 | class MainActivity : Activity() {
7 |
8 | override fun onCreate(savedInstanceState: Bundle?) {
9 | super.onCreate(savedInstanceState)
10 | setContentView(R.layout.activity_main)
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-inverse-order/app/src/main/java/kotlinx/kover/test/android/Maths.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object Maths {
4 | fun sum(a: Int, b: Int): Int {
5 | DebugUtil.log("invoked sum")
6 | return a + b
7 | }
8 |
9 | fun sub(a: Int, b: Int): Int {
10 | DebugUtil.log("invoked sub")
11 | return a - b
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-inverse-order/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-inverse-order/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Android Test
3 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-inverse-order/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-inverse-order/app/src/test/java/kotlinx/kover/test/android/LocalTests.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 |
8 | class LocalTests {
9 | @Test
10 | fun testDebugUtils() {
11 | assertEquals(3, Maths.sum(1, 2))
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-inverse-order/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | id("com.android.application") version "7.4.0" apply false
3 | id("com.android.library") version "7.4.0" apply false
4 | id("org.jetbrains.kotlin.android") version "1.8.20" apply false
5 | id("org.jetbrains.kotlinx.kover") version "0.7.1" apply false
6 | }
7 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-inverse-order/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | gradlePluginPortal()
6 | }
7 | }
8 |
9 | dependencyResolutionManagement {
10 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11 | repositories {
12 | google()
13 | mavenCentral()
14 | gradlePluginPortal()
15 | }
16 | }
17 |
18 | rootProject.name = "android_kts"
19 | include(":app")
20 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-mpp-inverse-order/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | gradlePluginPortal()
6 | }
7 | }
8 |
9 | dependencyResolutionManagement {
10 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11 | repositories {
12 | google()
13 | mavenCentral()
14 | gradlePluginPortal()
15 | }
16 | }
17 |
18 | rootProject.name = "multiproject-joined"
19 |
20 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-mpp-inverse-order/src/debug/kotlin/kotlinx/test/android/DebugAppClass.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object DebugAppClass {
4 | fun foo() {
5 | println("LIB DEBUG")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-mpp-inverse-order/src/jvmMain/kotlin/kotlinx/test/jvm/JvmClass.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.jvm
2 |
3 | object JvmClass {
4 | fun foo() {
5 | println("JVM")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-mpp-inverse-order/src/jvmTest/kotlin/kotlinx/test/jvm/JvmTest.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.jvm
2 |
3 | import kotlin.test.Test
4 |
5 | object JvmTest {
6 |
7 | @Test
8 | fun test() {
9 | JvmClass.foo()
10 | println("JVM")
11 | }
12 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-mpp-inverse-order/src/main/java/kotlinx/kover/test/android/DebugUtil.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object DebugUtil {
4 | fun log(message: String) {
5 | println("DEBUG: $message")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-mpp-inverse-order/src/main/java/kotlinx/kover/test/android/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import android.os.Bundle
4 | import android.app.Activity
5 |
6 | class MainActivity : Activity() {
7 |
8 | override fun onCreate(savedInstanceState: Bundle?) {
9 | super.onCreate(savedInstanceState)
10 | setContentView(R.layout.activity_main)
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-mpp-inverse-order/src/main/java/kotlinx/kover/test/android/Maths.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object Maths {
4 | fun sum(a: Int, b: Int): Int {
5 | DebugUtil.log("invoked sum")
6 | return a + b
7 | }
8 |
9 | fun sub(a: Int, b: Int): Int {
10 | DebugUtil.log("invoked sub")
11 | return a - b
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-mpp-inverse-order/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-mpp-inverse-order/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Android Test
3 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-mpp-inverse-order/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-mpp-inverse-order/src/test/java/kotlinx/kover/test/android/LocalTests.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 |
8 | class LocalTests {
9 | @Test
10 | fun testDebugUtils() {
11 | assertEquals(3, Maths.sum(1, 2))
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-no-variant-for-config/app/src/main/java/kotlinx/kover/test/android/DebugUtil.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object DebugUtil {
4 | fun log(message: String) {
5 | println("DEBUG: $message")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-no-variant-for-config/app/src/main/java/kotlinx/kover/test/android/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import android.os.Bundle
4 | import android.app.Activity
5 |
6 | class MainActivity : Activity() {
7 |
8 | override fun onCreate(savedInstanceState: Bundle?) {
9 | super.onCreate(savedInstanceState)
10 | setContentView(R.layout.activity_main)
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-no-variant-for-config/app/src/main/java/kotlinx/kover/test/android/Maths.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object Maths {
4 | fun sum(a: Int, b: Int): Int {
5 | DebugUtil.log("invoked sum")
6 | return a + b
7 | }
8 |
9 | fun sub(a: Int, b: Int): Int {
10 | DebugUtil.log("invoked sub")
11 | return a - b
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-no-variant-for-config/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-no-variant-for-config/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Android Test
3 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-no-variant-for-config/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-no-variant-for-config/app/src/test/java/kotlinx/kover/test/android/LocalTests.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 |
8 | class LocalTests {
9 | @Test
10 | fun testDebugUtils() {
11 | assertEquals(3, Maths.sum(1, 2))
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-no-variant-for-config/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | id("com.android.application") version "7.4.0" apply false
3 | id("com.android.library") version "7.4.0" apply false
4 | id("org.jetbrains.kotlin.android") version "1.8.20" apply false
5 | id("org.jetbrains.kotlinx.kover") version "0.7.1" apply false
6 | }
7 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-no-variant-for-config/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | gradlePluginPortal()
6 | }
7 | }
8 |
9 | dependencyResolutionManagement {
10 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11 | repositories {
12 | google()
13 | mavenCentral()
14 | gradlePluginPortal()
15 | }
16 | }
17 |
18 | rootProject.name = "android_kts"
19 | include(":app")
20 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-no-variant-for-merge/app/src/main/java/kotlinx/kover/test/android/DebugUtil.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object DebugUtil {
4 | fun log(message: String) {
5 | println("DEBUG: $message")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-no-variant-for-merge/app/src/main/java/kotlinx/kover/test/android/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import android.os.Bundle
4 | import android.app.Activity
5 |
6 | class MainActivity : Activity() {
7 |
8 | override fun onCreate(savedInstanceState: Bundle?) {
9 | super.onCreate(savedInstanceState)
10 | setContentView(R.layout.activity_main)
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-no-variant-for-merge/app/src/main/java/kotlinx/kover/test/android/Maths.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object Maths {
4 | fun sum(a: Int, b: Int): Int {
5 | DebugUtil.log("invoked sum")
6 | return a + b
7 | }
8 |
9 | fun sub(a: Int, b: Int): Int {
10 | DebugUtil.log("invoked sub")
11 | return a - b
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-no-variant-for-merge/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-no-variant-for-merge/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Android Test
3 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-no-variant-for-merge/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-no-variant-for-merge/app/src/test/java/kotlinx/kover/test/android/LocalTests.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 |
8 | class LocalTests {
9 | @Test
10 | fun testDebugUtils() {
11 | assertEquals(3, Maths.sum(1, 2))
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-no-variant-for-merge/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | id("com.android.application") version "7.4.0" apply false
3 | id("com.android.library") version "7.4.0" apply false
4 | id("org.jetbrains.kotlin.android") version "1.8.20" apply false
5 | id("org.jetbrains.kotlinx.kover") version "0.7.1" apply false
6 | }
7 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-no-variant-for-merge/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | gradlePluginPortal()
6 | }
7 | }
8 |
9 | dependencyResolutionManagement {
10 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11 | repositories {
12 | google()
13 | mavenCentral()
14 | gradlePluginPortal()
15 | }
16 | }
17 |
18 | rootProject.name = "android_kts"
19 | include(":app")
20 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-subproject-apply/app/src/main/java/kotlinx/kover/test/android/DebugUtil.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object DebugUtil {
4 | fun log(message: String) {
5 | println("DEBUG: $message")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-subproject-apply/app/src/main/java/kotlinx/kover/test/android/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import android.os.Bundle
4 | import android.app.Activity
5 |
6 | class MainActivity : Activity() {
7 |
8 | override fun onCreate(savedInstanceState: Bundle?) {
9 | super.onCreate(savedInstanceState)
10 | setContentView(R.layout.activity_main)
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-subproject-apply/app/src/main/java/kotlinx/kover/test/android/Maths.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object Maths {
4 | fun sum(a: Int, b: Int): Int {
5 | DebugUtil.log("invoked sum")
6 | return a + b
7 | }
8 |
9 | fun sub(a: Int, b: Int): Int {
10 | DebugUtil.log("invoked sub")
11 | return a - b
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-subproject-apply/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-subproject-apply/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Android Test
3 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-subproject-apply/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-subproject-apply/app/src/test/java/kotlinx/kover/test/android/LocalTests.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 |
8 | class LocalTests {
9 | @Test
10 | fun testDebugUtils() {
11 | assertEquals(3, Maths.sum(1, 2))
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-subproject-apply/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | id("com.android.application") version "7.4.0" apply false
3 | id("com.android.library") version "7.4.0" apply false
4 | id("org.jetbrains.kotlin.android") version "1.8.20" apply false
5 | id("org.jetbrains.kotlinx.kover") version "0.7.1"
6 | }
7 |
8 | /*
9 | * Kover configs
10 | */
11 |
12 | subprojects {
13 | apply(plugin = "org.jetbrains.kotlinx.kover")
14 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-subproject-apply/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | gradlePluginPortal()
6 | }
7 | }
8 |
9 | dependencyResolutionManagement {
10 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11 | repositories {
12 | google()
13 | mavenCentral()
14 | gradlePluginPortal()
15 | }
16 | }
17 |
18 | rootProject.name = "android_kts"
19 | include(":app")
20 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-test-tasks-filtering/app/src/main/java/kotlinx/kover/test/android/DebugUtil.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object DebugUtil {
4 | fun log(message: String) {
5 | println("DEBUG: $message")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-test-tasks-filtering/app/src/main/java/kotlinx/kover/test/android/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import android.os.Bundle
4 | import android.app.Activity
5 |
6 | class MainActivity : Activity() {
7 |
8 | override fun onCreate(savedInstanceState: Bundle?) {
9 | super.onCreate(savedInstanceState)
10 | setContentView(R.layout.activity_main)
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-test-tasks-filtering/app/src/main/java/kotlinx/kover/test/android/Maths.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object Maths {
4 | fun sum(a: Int, b: Int): Int {
5 | DebugUtil.log("invoked sum")
6 | return a + b
7 | }
8 |
9 | fun sub(a: Int, b: Int): Int {
10 | DebugUtil.log("invoked sub")
11 | return a - b
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-test-tasks-filtering/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-test-tasks-filtering/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Android Test
3 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-test-tasks-filtering/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-test-tasks-filtering/app/src/test/java/kotlinx/kover/test/android/LocalTests.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 |
8 | class LocalTests {
9 | @Test
10 | fun testDebugUtils() {
11 | assertEquals(3, Maths.sum(1, 2))
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-test-tasks-filtering/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | id("com.android.application") version "7.4.0" apply false
3 | id("com.android.library") version "7.4.0" apply false
4 | id("org.jetbrains.kotlin.android") version "1.8.20" apply false
5 | id("org.jetbrains.kotlinx.kover") version "0.7.1" apply false
6 | }
7 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/android-test-tasks-filtering/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | gradlePluginPortal()
6 | }
7 | }
8 |
9 | dependencyResolutionManagement {
10 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11 | repositories {
12 | google()
13 | mavenCentral()
14 | gradlePluginPortal()
15 | }
16 | }
17 |
18 | rootProject.name = "android_tasks_filtering"
19 | include(":app")
20 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/buildsrc-usage/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | kotlin("jvm") version "1.4.20"
3 | }
4 |
5 | apply(plugin = "org.jetbrains.kotlinx.kover")
6 |
7 | dependencies {
8 | testImplementation("org.junit.jupiter:junit-jupiter:5.8.0")
9 | }
10 |
11 | tasks.test {
12 | useJUnitPlatform()
13 | }
14 |
15 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/buildsrc-usage/buildSrc/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | kotlin("jvm") version "1.4.20"
3 | }
4 |
5 | dependencies {
6 | implementation("org.jetbrains.kotlinx:kover-gradle-plugin:TEST")
7 | }
8 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/buildsrc-usage/buildSrc/src/main/kotlin/Usage.kt:
--------------------------------------------------------------------------------
1 | class Class {
2 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/buildsrc-usage/requires:
--------------------------------------------------------------------------------
1 | MAX_GRADLE=8.0
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/buildsrc-usage/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | gradlePluginPortal()
4 | mavenCentral()
5 | }
6 | }
7 | rootProject.name = "buildsrc-usage"
8 |
9 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/buildsrc-usage/src/main/kotlin/ExampleClass.kt:
--------------------------------------------------------------------------------
1 | class ExampleClass {
2 | fun example() {
3 | println("example")
4 | }
5 |
6 | fun unused() {
7 | println("unused")
8 | }
9 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/buildsrc-usage/src/test/kotlin/TestClass.kt:
--------------------------------------------------------------------------------
1 | import org.junit.jupiter.api.Test
2 |
3 | class TestClass {
4 | @Test
5 | fun testBranches() {
6 | ExampleClass().example()
7 | }
8 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/counters/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | kotlin("jvm") version "1.7.10"
3 | id("org.jetbrains.kotlinx.kover")
4 | }
5 |
6 | dependencies {
7 | testImplementation(kotlin("test"))
8 | }
9 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/counters/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | gradlePluginPortal()
4 | mavenCentral()
5 | }
6 | }
7 |
8 | rootProject.name = "counters"
9 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/counters/src/main/java/TryFinally.java:
--------------------------------------------------------------------------------
1 | package org.jetbrains;
2 |
3 | public final class TryFinally {
4 |
5 | private TryFinally() {}
6 |
7 | public static void testWithCatch(Runnable runnable) {
8 | try {
9 | runnable.run(); // covered
10 | } catch (RuntimeException e) {
11 | System.out.println("Error"); // missed
12 | } finally {
13 | System.out.println("Finally"); // covered
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/counters/src/main/java/TryWithResources.java:
--------------------------------------------------------------------------------
1 | package org.jetbrains;
2 |
3 | public final class TryWithResources {
4 |
5 | private TryWithResources() {}
6 |
7 | public static void test() throws Exception {
8 | try (AutoCloseable ignored = generate()) {
9 | System.out.println("action");
10 | }
11 | }
12 |
13 | private static AutoCloseable generate() {
14 | return () -> System.out.println("closed");
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/counters/src/main/kotlin/Branches.kt:
--------------------------------------------------------------------------------
1 | package org.jetbrains
2 |
3 | class MyBranchedClass {
4 | fun foo(value: Int) {
5 | if (value < 0) {
6 | println("LE")
7 | } else if (value == 0) {
8 | println("EQ")
9 | } else {
10 | println("GE")
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/counters/src/main/kotlin/Sealed.kt:
--------------------------------------------------------------------------------
1 | package org.jetbrains
2 |
3 | sealed class Sealed
4 | data class SealedChild(val a: Int): Sealed()
5 |
6 | sealed class SealedWithInit {
7 | init {
8 | println("SealedWithInit")
9 | }
10 | }
11 | data class SealedWithInitChild(val a: Int): SealedWithInit()
12 |
13 | sealed class SealedWithConstructor {
14 | constructor() {
15 | println("SealedWithConstructor")
16 | }
17 | }
18 | data class SealedWithConstructorChild(val a: Int): SealedWithConstructor()
19 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/different-plugins/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | id("org.jetbrains.kotlinx.kover")
3 | }
4 |
5 | dependencies {
6 | kover(project(":subproject-multiplatform"))
7 | }
8 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/different-plugins/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | gradlePluginPortal()
4 | mavenCentral()
5 | }
6 | }
7 |
8 | rootProject.name = "different-plugins"
9 |
10 | include(":subproject-multiplatform")
11 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/different-plugins/subproject-multiplatform/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | kotlin("multiplatform") version ("1.7.20")
3 | id("org.jetbrains.kotlinx.kover")
4 | }
5 |
6 | kotlin {
7 | jvm()
8 |
9 | sourceSets {
10 | commonTest {
11 | dependencies {
12 | implementation("org.jetbrains.kotlin:kotlin-test")
13 | }
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/different-plugins/subproject-multiplatform/src/commonMain/kotlin/CommonClass.kt:
--------------------------------------------------------------------------------
1 | package org.jetbrains
2 |
3 | class CommonClass {
4 | fun function() {
5 | println("Function")
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/different-plugins/subproject-multiplatform/src/commonTest/kotlin/CommonTest.kt:
--------------------------------------------------------------------------------
1 | package org.jetbrains
2 |
3 | import kotlin.test.Test
4 |
5 | class CommonTest {
6 | @Test
7 | fun testCommon() {
8 | CommonClass().function()
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/different-plugins/subproject-multiplatform/src/jvmMain/kotlin/JvmClass.kt:
--------------------------------------------------------------------------------
1 | package org.jetbrains
2 |
3 | class JvmClass {
4 | fun jvmFunction() {
5 | println("JVM function")
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/different-plugins/subproject-multiplatform/src/jvmTest/kotlin/JvmTest.kt:
--------------------------------------------------------------------------------
1 | package org.jetbrains
2 |
3 | import kotlin.test.Test
4 |
5 | class JvmTest {
6 | @Test
7 | fun jvmTest() {
8 | JvmClass().jvmFunction()
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/disabledUnitTests/app/src/main/java/kotlinx/kover/test/android/DebugUtil.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object DebugUtil {
4 | fun log(message: String) {
5 | println("DEBUG: $message")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/disabledUnitTests/app/src/main/java/kotlinx/kover/test/android/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import android.os.Bundle
4 | import android.app.Activity
5 |
6 | class MainActivity : Activity() {
7 |
8 | override fun onCreate(savedInstanceState: Bundle?) {
9 | super.onCreate(savedInstanceState)
10 | setContentView(R.layout.activity_main)
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/disabledUnitTests/app/src/main/java/kotlinx/kover/test/android/Maths.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object Maths {
4 | fun sum(a: Int, b: Int): Int {
5 | DebugUtil.log("invoked sum")
6 | return a + b
7 | }
8 |
9 | fun sub(a: Int, b: Int): Int {
10 | DebugUtil.log("invoked sub")
11 | return a - b
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/disabledUnitTests/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/disabledUnitTests/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Android Test
3 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/disabledUnitTests/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/disabledUnitTests/app/src/test/java/kotlinx/kover/test/android/LocalTests.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 |
8 | class LocalTests {
9 | @Test
10 | fun testDebugUtils() {
11 | assertEquals(3, Maths.sum(1, 2))
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/disabledUnitTests/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | id("com.android.application") version "7.4.0" apply false
3 | id("com.android.library") version "7.4.0" apply false
4 | id("org.jetbrains.kotlin.android") version "1.8.20" apply false
5 | id("org.jetbrains.kotlinx.kover") version "0.7.2" apply false
6 | }
7 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/disabledUnitTests/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | gradlePluginPortal()
6 | }
7 | }
8 |
9 | dependencyResolutionManagement {
10 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11 | repositories {
12 | google()
13 | mavenCentral()
14 | gradlePluginPortal()
15 | }
16 | }
17 |
18 | rootProject.name = "disabledUnitTests"
19 | include(":app")
20 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/k2-counters/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | kotlin("jvm") version "2.0.0"
3 | id("org.jetbrains.kotlinx.kover")
4 | }
5 |
6 | dependencies {
7 | testImplementation(kotlin("test"))
8 | }
9 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/k2-counters/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | gradlePluginPortal()
4 | mavenCentral()
5 | }
6 | }
7 |
8 | rootProject.name = "k2-counters"
9 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/k2-counters/src/main/kotlin/Branches.kt:
--------------------------------------------------------------------------------
1 | package org.jetbrains
2 |
3 | enum class K2Enum {
4 | A,
5 | B
6 | }
7 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/k2-counters/src/test/kotlin/TestClass.kt:
--------------------------------------------------------------------------------
1 | package org.jetbrains.serialuser
2 |
3 | import org.jetbrains.*
4 | import kotlin.test.Test
5 |
6 | class TestClass {
7 | @Test
8 | fun testBranches() {
9 | println(K2Enum.A)
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/nested-project/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | base
3 | id("org.jetbrains.kotlinx.kover")
4 | }
5 |
6 | dependencies {
7 | kover(project(":subprojects:alpha-project"))
8 | }
9 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/nested-project/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | gradlePluginPortal()
4 | mavenCentral()
5 | }
6 | }
7 |
8 | rootProject.name = "nested-project"
9 |
10 | include(":subprojects:alpha-project")
11 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/nested-project/subprojects/alpha-project/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | kotlin("jvm") version ("1.7.20")
3 | id("org.jetbrains.kotlinx.kover")
4 | }
5 |
6 | dependencies {
7 | testImplementation(kotlin("test"))
8 | }
9 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/nested-project/subprojects/alpha-project/src/test/kotlin/MyTest.kt:
--------------------------------------------------------------------------------
1 | import kotlin.test.*
2 |
3 | class MyTest {
4 | @Test
5 | fun foo() {
6 | assertEquals("123", 123.toString())
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-dependency-android/app/src/main/java/kotlinx/kover/test/android/DebugUtil.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object DebugUtil {
4 | fun log(message: String) {
5 | println("DEBUG: $message")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-dependency-android/app/src/main/java/kotlinx/kover/test/android/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import android.os.Bundle
4 | import android.app.Activity
5 |
6 | class MainActivity : Activity() {
7 |
8 | override fun onCreate(savedInstanceState: Bundle?) {
9 | super.onCreate(savedInstanceState)
10 | setContentView(R.layout.activity_main)
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-dependency-android/app/src/main/java/kotlinx/kover/test/android/Maths.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object Maths {
4 | fun sum(a: Int, b: Int): Int {
5 | DebugUtil.log("invoked sum")
6 | return a + b
7 | }
8 |
9 | fun sub(a: Int, b: Int): Int {
10 | DebugUtil.log("invoked sub")
11 | return a - b
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-dependency-android/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-dependency-android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Android Test
3 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-dependency-android/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-dependency-android/app/src/test/java/kotlinx/kover/test/android/LocalTests.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 |
8 | class LocalTests {
9 | @Test
10 | fun testDebugUtils() {
11 | assertEquals(3, Maths.sum(1, 2))
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-dependency-android/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | id("com.android.application") version "7.4.0" apply false
3 | id("com.android.library") version "7.4.0" apply false
4 | id("org.jetbrains.kotlin.android") version "1.8.20" apply false
5 | id("org.jetbrains.kotlinx.kover") version "0.7.1" apply false
6 | }
7 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-dependency-android/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | gradlePluginPortal()
6 | }
7 | }
8 |
9 | dependencyResolutionManagement {
10 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11 | repositories {
12 | google()
13 | mavenCentral()
14 | gradlePluginPortal()
15 | }
16 | }
17 |
18 | rootProject.name = "android_kts"
19 | include(":app", ":subproject")
20 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-dependency-android/subproject/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | kotlin("jvm")
3 | }
4 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-dependency-jvm/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | kotlin("jvm") version "1.8.20"
3 | id("org.jetbrains.kotlinx.kover")
4 | }
5 |
6 | dependencies {
7 | kover(project(":subproject"))
8 | }
9 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-dependency-jvm/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | gradlePluginPortal()
4 | mavenCentral()
5 | }
6 | }
7 |
8 | rootProject.name = "no-dependency-jvm"
9 |
10 | include(":subproject")
11 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-dependency-jvm/subproject/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | kotlin("jvm")
3 | }
4 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-dependency-variant-android/app-extra/src/main/java/kotlinx/kover/test/android/ExtraUtil.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object ExtraUtil {
4 | fun log(message: String) {
5 | println("Extra: $message")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-dependency-variant-android/app-extra/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-dependency-variant-android/app-extra/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Android Test
3 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-dependency-variant-android/app-extra/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-dependency-variant-android/app-extra/src/test/java/kotlinx/kover/test/android/LocalTests.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 |
8 | class LocalTests {
9 | @Test
10 | fun testDebugUtils() {
11 | assertEquals(3, 3)
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-dependency-variant-android/app/src/main/java/kotlinx/kover/test/android/DebugUtil.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object DebugUtil {
4 | fun log(message: String) {
5 | println("DEBUG: $message")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-dependency-variant-android/app/src/main/java/kotlinx/kover/test/android/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import android.os.Bundle
4 | import android.app.Activity
5 |
6 | class MainActivity : Activity() {
7 |
8 | override fun onCreate(savedInstanceState: Bundle?) {
9 | super.onCreate(savedInstanceState)
10 | setContentView(R.layout.activity_main)
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-dependency-variant-android/app/src/main/java/kotlinx/kover/test/android/Maths.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | object Maths {
4 | fun sum(a: Int, b: Int): Int {
5 | DebugUtil.log("invoked sum")
6 | return a + b
7 | }
8 |
9 | fun sub(a: Int, b: Int): Int {
10 | DebugUtil.log("invoked sub")
11 | return a - b
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-dependency-variant-android/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-dependency-variant-android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Android Test
3 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-dependency-variant-android/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-dependency-variant-android/app/src/test/java/kotlinx/kover/test/android/LocalTests.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 |
8 | class LocalTests {
9 | @Test
10 | fun testDebugUtils() {
11 | assertEquals(3, Maths.sum(1, 2))
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-dependency-variant-android/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | id("com.android.application") version "7.4.0" apply false
3 | id("com.android.library") version "7.4.0" apply false
4 | id("org.jetbrains.kotlin.android") version "1.8.20" apply false
5 | id("org.jetbrains.kotlinx.kover") version "0.7.1" apply false
6 | }
7 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-dependency-variant-android/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | gradlePluginPortal()
6 | }
7 | }
8 |
9 | dependencyResolutionManagement {
10 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11 | repositories {
12 | google()
13 | mavenCentral()
14 | gradlePluginPortal()
15 | }
16 | }
17 |
18 | rootProject.name = "android_kts"
19 | include(":app", ":app-extra")
20 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-tests-jvm/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | kotlin("jvm") version "1.8.20"
3 | id("org.jetbrains.kotlinx.kover")
4 | }
5 |
6 | kover {
7 | reports {
8 | verify {
9 | rule {
10 | minBound(50)
11 | }
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-tests-jvm/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | gradlePluginPortal()
4 | mavenCentral()
5 | }
6 | }
7 |
8 | rootProject.name = "no-tests-jvm"
9 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-tests-jvm/src/main/kotlin/ExampleClass.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.templates
2 |
3 | class ExampleClass {
4 | fun formatInt(i: Int): String {
5 | if (i == 0) return "ZERO"
6 | return if (i > 0) {
7 | "POSITIVE=$i"
8 | } else {
9 | "NEGATIVE=${-i}"
10 | }
11 | }
12 |
13 | fun printClass() {
14 | val name = this::class.qualifiedName
15 | println(name)
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-tests-mpp/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | kotlin("multiplatform") version ("1.8.20")
3 | id ("org.jetbrains.kotlinx.kover") version "0.7.1"
4 | }
5 |
6 | kotlin {
7 | jvm()
8 | jvmToolchain(8)
9 | }
10 |
11 | /*
12 | * Kover configs
13 | */
14 |
15 | kover {
16 | reports {
17 | verify {
18 | rule {
19 | minBound(50)
20 | }
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-tests-mpp/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | gradlePluginPortal()
4 | mavenCentral()
5 | }
6 | }
7 |
8 | rootProject.name = "no-tests-mpp"
9 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/no-tests-mpp/src/jvmMain/kotlin/ExampleClass.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.templates
2 |
3 | class ExampleClass {
4 | fun formatInt(i: Int): String {
5 | if (i == 0) return "ZERO"
6 | return if (i > 0) {
7 | "POSITIVE=$i"
8 | } else {
9 | "NEGATIVE=${-i}"
10 | }
11 | }
12 |
13 | fun printClass() {
14 | val name = this::class.qualifiedName
15 | println(name)
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-android/app/src/debug/kotlin/kotlinx/kover/test/android/DebugClass.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package kotlinx.kover.test.android
6 |
7 | object DebugClass {
8 | fun log(message: String) {
9 | println("DEBUG: $message")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-android/app/src/main/kotlin/kotlinx/kover/test/android/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.test.android
2 |
3 | import android.os.Bundle
4 | import android.app.Activity
5 |
6 | class MainActivity : Activity() {
7 |
8 | override fun onCreate(savedInstanceState: Bundle?) {
9 | super.onCreate(savedInstanceState)
10 | setContentView(R.layout.activity_main)
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-android/app/src/main/kotlin/kotlinx/kover/test/android/MainClass.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package kotlinx.kover.test.android
6 |
7 | class MainClass {
8 | fun log(message: String) {
9 | println("DEBUG: $message")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 | Android Test
7 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-android/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-android/app/src/release/kotlin/kotlinx/kover/test/android/ReleaseClass.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package kotlinx.kover.test.android
6 |
7 | object ReleaseClass {
8 | fun log(message: String) {
9 | println("DEBUG: $message")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-android/app/src/test/java/kotlinx/kover/test/android/LocalTests.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package kotlinx.kover.test.android
6 |
7 | import org.junit.Test
8 |
9 | import org.junit.Assert.*
10 |
11 |
12 | class LocalTests {
13 | @Test
14 | fun test() {
15 | MainClass().log("test")
16 | }
17 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-android/build.gradle.kts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | plugins {
6 | id("com.android.application") version "7.4.0" apply false
7 | id("com.android.library") version "7.4.0" apply false
8 | id("org.jetbrains.kotlin.android") version "1.8.20" apply false
9 | }
10 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-instrumentation/build.gradle.kts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | plugins {
6 | kotlin("jvm") version ("2.0.0")
7 | }
8 |
9 | dependencies {
10 | testImplementation(kotlin("test"))
11 | }
12 |
13 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-instrumentation/src/main/kotlin/RootClass.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package tests.settings.root
6 |
7 | import java.lang.AutoCloseable
8 |
9 | class RootClass {
10 | fun action() {
11 | println("It's root class")
12 | }
13 | }
14 |
15 | class Tested {
16 | fun action() {
17 | println("It's tested root class")
18 | }
19 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-instrumentation/src/test/kotlin/RootTest.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package tests.settings.root
6 |
7 | import kotlin.test.Test
8 |
9 | class RootTest {
10 | @Test
11 | fun test() {
12 | RootClass().action()
13 | Tested().action()
14 | }
15 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-instrumentation/subproject/build.gradle.kts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | plugins {
6 | kotlin("jvm")
7 | }
8 |
9 | dependencies {
10 | testImplementation(kotlin("test"))
11 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-instrumentation/subproject/src/main/kotlin/SubprojectClass.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package tests.settings.subproject
6 |
7 | class SubprojectClass {
8 | fun action() {
9 | println("It's class from the subproject")
10 | }
11 | }
12 |
13 | class Tested {
14 | fun action() {
15 | println("It's tested subproject class")
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-instrumentation/subproject/src/test/kotlin/ATest.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package tests.settings.subproject
6 |
7 | import kotlin.test.Test
8 |
9 | class SubprojectTest {
10 | @Test
11 | fun test() {
12 | SubprojectClass().action()
13 | Tested().action()
14 | }
15 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-instrumentation/subproject2/build.gradle.kts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | import kotlinx.kover.gradle.aggregation.settings.dsl.*
6 |
7 | plugins {
8 | kotlin("jvm")
9 | }
10 |
11 | dependencies {
12 | testImplementation(kotlin("test"))
13 | }
14 |
15 | extensions.configure {
16 | instrumentation.disabledForTestTasks.add("test")
17 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-instrumentation/subproject2/src/main/kotlin/Subproject2Class.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package tests.settings.subproject2
6 |
7 | class Subproject2Class {
8 | fun action() {
9 | println("It's class from the subproject2")
10 | }
11 | }
12 |
13 | class Tested {
14 | fun action() {
15 | println("It's tested subproject2 class")
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-instrumentation/subproject2/src/test/kotlin/ATest.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package tests.settings.subproject2
6 |
7 | import kotlin.test.Test
8 |
9 | class Subproject2Test {
10 | @Test
11 | fun test() {
12 | Subproject2Class().action()
13 | Tested().action()
14 | }
15 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-verify-each/build.gradle.kts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | plugins {
6 | kotlin("jvm") version ("2.0.0")
7 | }
8 |
9 | dependencies {
10 | implementation(project(":subproject"))
11 | implementation(project(":ignored"))
12 |
13 | testImplementation(kotlin("test"))
14 | }
15 |
16 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-verify-each/ignored/build.gradle.kts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | plugins {
6 | kotlin("jvm")
7 | }
8 |
9 | dependencies {
10 | testImplementation(kotlin("test"))
11 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-verify-each/ignored/src/main/kotlin/SubprojectClass.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package tests.settings.ignored
6 |
7 | class SubprojectClass {
8 | fun action() {
9 | println("It's class from the subproject")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-verify-each/ignored/src/test/kotlin/ATest.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package tests.settings.ignored
6 |
7 | import kotlin.test.Test
8 |
9 | class SubprojectTest {
10 | @Test
11 | fun test() {
12 | SubprojectClass().action()
13 | }
14 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-verify-each/src/test/kotlin/RootTest.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package tests.settings.root
6 |
7 | import kotlin.test.Test
8 | import tests.settings.subproject.UsedInRootClass
9 |
10 | class RootTest {
11 | @Test
12 | fun test() {
13 | RootClass().action()
14 |
15 | UsedInRootClass().action()
16 | }
17 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-verify-each/subproject/build.gradle.kts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | plugins {
6 | kotlin("jvm")
7 | }
8 |
9 | dependencies {
10 | implementation(project(":subproject2"))
11 | testImplementation(kotlin("test"))
12 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-verify-each/subproject/src/main/kotlin/SubprojectClass.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package tests.settings.subproject
6 |
7 | class SubprojectClass {
8 | fun action() {
9 | println("It's class from the subproject")
10 | }
11 | }
12 |
13 | class UsedInRootClass {
14 | fun action() {
15 | println("It's class from the subproject")
16 | }
17 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-verify-each/subproject/src/test/kotlin/ATest.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package tests.settings.subproject
6 |
7 | import kotlin.test.Test
8 | import tests.settings.subproject2.ToRegularSubprojectClass
9 |
10 | class SubprojectTest {
11 | @Test
12 | fun test() {
13 | SubprojectClass().action()
14 | ToRegularSubprojectClass().action()
15 | }
16 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-verify-each/subproject2/build.gradle.kts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | plugins {
6 | kotlin("jvm")
7 | }
8 |
9 | dependencies {
10 | testImplementation(kotlin("test"))
11 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-verify-each/subproject2/src/test/kotlin/ATest.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package tests.settings.subproject2
6 |
7 | import kotlin.test.Test
8 |
9 | class Subproject2Test {
10 | @Test
11 | fun test() {
12 | Subproject2Class().action()
13 | }
14 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-verify/build.gradle.kts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | plugins {
6 | kotlin("jvm") version ("2.0.0")
7 | }
8 |
9 | dependencies {
10 | testImplementation(kotlin("test"))
11 | }
12 |
13 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-verify/src/test/kotlin/RootTest.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package tests.settings.root
6 |
7 | import kotlin.test.Test
8 |
9 | class RootTest {
10 | @Test
11 | fun test() {
12 | RootClass().action()
13 | }
14 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-verify/subproject/build.gradle.kts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | plugins {
6 | kotlin("jvm")
7 | }
8 |
9 | dependencies {
10 | testImplementation(kotlin("test"))
11 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-verify/subproject/src/main/kotlin/SubprojectClass.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package tests.settings.subproject
6 |
7 | class SubprojectClass {
8 | fun action() {
9 | println("It's class from the subproject")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin-verify/subproject/src/test/kotlin/ATest.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package tests.settings.subproject
6 |
7 | import kotlin.test.Test
8 |
9 | class SubprojectTest {
10 | @Test
11 | fun test() {
12 | SubprojectClass().action()
13 | }
14 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | kotlin("jvm") version ("2.0.0")
3 | }
4 |
5 | dependencies {
6 | testImplementation(kotlin("test"))
7 | }
8 |
9 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | gradlePluginPortal()
4 | mavenCentral()
5 | }
6 | }
7 |
8 | plugins {
9 | id("org.jetbrains.kotlinx.kover.aggregation") version "SNAPSHOT"
10 | }
11 |
12 | buildCache {
13 | local {
14 | directory = "$settingsDir/build-cache"
15 | }
16 | }
17 |
18 | rootProject.name = "settings-plugin"
19 |
20 | include(":subproject")
21 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin/src/main/kotlin/RootClass.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package tests.settings.root
6 |
7 | class RootClass {
8 | fun action() {
9 | println("It's root class")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin/src/test/kotlin/RootTest.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package tests.settings.root
6 |
7 | import kotlin.test.Test
8 |
9 | class RootTest {
10 | @Test
11 | fun test() {
12 | RootClass().action()
13 | }
14 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin/subproject/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | kotlin("jvm")
3 | }
4 |
5 | dependencies {
6 | testImplementation(kotlin("test"))
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin/subproject/src/main/kotlin/SubprojectClass.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package tests.settings.subproject
6 |
7 | class SubprojectClass {
8 | fun action() {
9 | println("It's class from the subproject")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/settings-plugin/subproject/src/test/kotlin/ATest.kt:
--------------------------------------------------------------------------------
1 | package tests.settings.subproject
2 |
3 | import kotlin.test.Test
4 |
5 | class SubprojectTest {
6 | @Test
7 | fun test() {
8 | SubprojectClass().action()
9 | }
10 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/sourcesets-mpp/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | kotlin("multiplatform") version "1.7.10"
3 | id("org.jetbrains.kotlinx.kover") version "0.7.0"
4 | }
5 |
6 | kover.currentProject.sources.excludedSourceSets.add("extra")
7 |
8 | sourceSets.create("extra")
9 |
10 | kotlin {
11 | jvm {
12 | withJava()
13 | }
14 |
15 | sourceSets {
16 | val commonTest by getting {
17 | dependencies {
18 | implementation(kotlin("test"))
19 | }
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/sourcesets-mpp/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | gradlePluginPortal()
4 | mavenCentral()
5 | }
6 | }
7 | rootProject.name = "example-source-sets-mpp"
8 |
9 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/sourcesets-mpp/src/jvmExtra/kotlin/ExtraClass.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.sourcesets
2 |
3 | class ExtraClass {
4 | fun function() {
5 | println("Example")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/sourcesets-mpp/src/jvmMain/kotlin/AppClasses.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.sourcesets
2 |
3 | class ExampleClass {
4 | fun formatInt(i: Int): String {
5 | if (i == 0) return "ZERO"
6 | return if (i > 0) {
7 | "POSITIVE=$i"
8 | } else {
9 | "NEGATIVE=${-i}"
10 | }
11 | }
12 |
13 | fun printClass() {
14 | val name = this::class.qualifiedName
15 | println(name)
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/sourcesets-mpp/src/jvmTest/kotlin/TestClasses.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.sourcesets
2 |
3 | import kotlin.test.Test
4 |
5 | class TestClasses {
6 | @Test
7 | fun test() {
8 | ExampleClass().formatInt(50)
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/sourcesets-multi/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | kotlin("jvm") version "2.1.0"
3 | id("org.jetbrains.kotlinx.kover") version "0.7.0"
4 | }
5 |
6 | sourceSets.create("extra")
7 | sourceSets.create("foo")
8 |
9 | dependencies {
10 | testImplementation(kotlin("test"))
11 | }
12 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/sourcesets-multi/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | gradlePluginPortal()
4 | mavenCentral()
5 | }
6 | }
7 | rootProject.name = "example-source-multi"
8 |
9 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/sourcesets-multi/src/extra/kotlin/ExtraClass.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.sourcesets
2 |
3 | class ExtraClass {
4 | fun function() {
5 | println("Example")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/sourcesets-multi/src/foo/kotlin/FooClass.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.sourcesets
2 |
3 | class FooClass {
4 | fun function() {
5 | println("Example")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/sourcesets-multi/src/main/kotlin/MainClass.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.sourcesets
2 |
3 | class MainClass {
4 | fun function() {
5 | println("Example")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/sourcesets-multi/src/test/kotlin/TestClasses.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.sourcesets
2 |
3 | import kotlin.test.Test
4 |
5 | class TestClasses {
6 | @Test
7 | fun test() {
8 | // no-tests
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/sourcesets/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | kotlin("jvm") version "1.7.10"
3 | id("org.jetbrains.kotlinx.kover") version "0.7.0"
4 | }
5 |
6 | sourceSets.create("extra")
7 |
8 | kover {
9 | currentProject {
10 | sources {
11 | excludedSourceSets.add("extra")
12 | }
13 | }
14 | }
15 |
16 | dependencies {
17 | testImplementation(kotlin("test"))
18 | }
19 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/sourcesets/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | gradlePluginPortal()
4 | mavenCentral()
5 | }
6 | }
7 | rootProject.name = "example-source-sets"
8 |
9 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/sourcesets/src/extra/kotlin/ExtraClass.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.sourcesets
2 |
3 | class ExtraClass {
4 | fun function() {
5 | println("Example")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/sourcesets/src/main/kotlin/AppClasses.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.sourcesets
2 |
3 | class ExampleClass {
4 | fun formatInt(i: Int): String {
5 | if (i == 0) return "ZERO"
6 | return if (i > 0) {
7 | "POSITIVE=$i"
8 | } else {
9 | "NEGATIVE=${-i}"
10 | }
11 | }
12 |
13 | fun printClass() {
14 | val name = this::class.qualifiedName
15 | println(name)
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/builds/sourcesets/src/test/kotlin/TestClasses.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.examples.sourcesets
2 |
3 | import kotlin.test.Test
4 |
5 | class TestClasses {
6 | @Test
7 | fun test() {
8 | ExampleClass().formatInt(50)
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/report.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Kotlin/kotlinx-kover/49fe12ac3646f99a65e1396d025166e7266aef25/kover-gradle-plugin/src/functionalTest/templates/report.bin
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/sources/annotations-mix/test/kotlin/TestClass.kt:
--------------------------------------------------------------------------------
1 | package org.jetbrains.serialuser
2 |
3 | import org.jetbrains.*
4 | import kotlin.test.Test
5 |
6 | class TestClass {
7 |
8 | @Test
9 | fun test() {
10 | println("Do nothing")
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/sources/different-packages/main/kotlin/FooSources.kt:
--------------------------------------------------------------------------------
1 | package foo.bar
2 |
3 | class FooClass {
4 | fun function() {
5 | println("Hello")
6 | }
7 |
8 | }
9 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/sources/different-packages/main/kotlin/Sources.kt:
--------------------------------------------------------------------------------
1 | package org.jetbrains.foo
2 |
3 | class ExampleClass {
4 | fun used(value: Int): Int {
5 | return value + 1
6 | }
7 |
8 | fun unused(value: Long): Long {
9 | return value - 1
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/sources/different-packages/test/kotlin/TestClass.kt:
--------------------------------------------------------------------------------
1 | package org.jetbrains.serialuser
2 |
3 | import org.jetbrains.foo.ExampleClass
4 | import foo.bar.FooClass
5 | import kotlin.test.Test
6 |
7 | class TestClass {
8 | @Test
9 | fun simpleTest() {
10 | ExampleClass().used(-20)
11 | FooClass().function()
12 | }
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/sources/inherited-main/test/kotlin/TestClass.kt:
--------------------------------------------------------------------------------
1 | package org.jetbrains.serialuser
2 |
3 | import org.jetbrains.*
4 | import kotlin.test.Test
5 |
6 | class TestClass {
7 |
8 | @Test
9 | fun test() {
10 | println("Do nothing")
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/sources/multiproject-common/main/kotlin/CommonSources.kt:
--------------------------------------------------------------------------------
1 | package org.jetbrains
2 |
3 | class CommonClass {
4 | fun callFromThisProject() {
5 | println("Call from this project")
6 | }
7 |
8 | fun callFromAnotherProject() {
9 | println("Call from another project")
10 | }
11 | }
12 |
13 | internal class CommonInternalClass {
14 | fun function() {
15 | println("CommonInternalClass#function call")
16 | }
17 | }
18 |
19 | class AUnused {
20 | fun functionInUsedClass() {
21 | println("unused")
22 | }
23 | }
24 |
25 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/sources/multiproject-common/test/kotlin/CommonTestClass.kt:
--------------------------------------------------------------------------------
1 | package org.jetbrains.serialuser
2 |
3 | import org.jetbrains.CommonClass
4 | import org.jetbrains.CommonInternalClass
5 | import kotlin.test.Test
6 |
7 | class TestClass {
8 | @Test
9 | fun callCommonTest() {
10 | CommonClass().callFromThisProject()
11 | }
12 |
13 | @Test
14 | fun callInternalTest() {
15 | CommonInternalClass().function()
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/sources/multiproject-user/main/kotlin/UserSources.kt:
--------------------------------------------------------------------------------
1 | package org.jetbrains
2 |
3 | internal class UserClass {
4 | fun function() {
5 | println("UserClass#function call")
6 | }
7 | }
8 |
9 | class BUnused {
10 | fun functionInUsedClass() {
11 | println("unused")
12 | }
13 | }
14 |
15 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/sources/multiproject-user/test/kotlin/UserTestClass.kt:
--------------------------------------------------------------------------------
1 | package org.jetbrains.serialuser
2 |
3 | import org.jetbrains.CommonClass
4 | import org.jetbrains.UserClass
5 | import kotlin.test.Test
6 |
7 | class TestClass {
8 | @Test
9 | fun callCommonTest() {
10 | CommonClass().callFromAnotherProject()
11 | }
12 |
13 | @Test
14 | fun callUserTest() {
15 | UserClass().function()
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/sources/one/main/kotlin/Sources.kt:
--------------------------------------------------------------------------------
1 | package org.jetbrains.one
2 |
3 | class OneClass {
4 | fun use(value: Int): Int {
5 | return value + 1
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/sources/one/test/kotlin/TestClass.kt:
--------------------------------------------------------------------------------
1 | package org.jetbrains.one.test
2 |
3 | import org.jetbrains.one.OneClass
4 | import kotlin.test.Test
5 |
6 | class TestClass {
7 | @Test
8 | fun test() {
9 | OneClass().use(-20)
10 | }
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/sources/simple/main/kotlin/Sources.kt:
--------------------------------------------------------------------------------
1 | package org.jetbrains
2 |
3 | class ExampleClass {
4 | fun used(value: Int): Int {
5 | return value + 1
6 | }
7 |
8 | fun unused(value: Long): Long {
9 | return value - 1
10 | }
11 | }
12 |
13 | class SecondClass {
14 | fun anotherUsed(value: Int): Int {
15 | return value + 1
16 | }
17 | }
18 |
19 | class Unused {
20 | fun functionInUsedClass() {
21 | println("unused")
22 | }
23 | }
24 |
25 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/sources/simple/test/kotlin/TestClass.kt:
--------------------------------------------------------------------------------
1 | package org.jetbrains.serialuser
2 |
3 | import org.jetbrains.ExampleClass
4 | import org.jetbrains.SecondClass
5 | import kotlin.test.Test
6 |
7 | class TestClass {
8 | @Test
9 | fun simpleTest() {
10 | ExampleClass().used(-20)
11 | }
12 |
13 | @Test
14 | fun secondTest() {
15 | SecondClass().anotherUsed(-20)
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/sources/two/main/kotlin/Sources.kt:
--------------------------------------------------------------------------------
1 | package org.jetbrains.two
2 |
3 | class TwoClass {
4 | fun use(value: Int): Int {
5 | return value + 1
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/functionalTest/templates/sources/two/test/kotlin/TestClass.kt:
--------------------------------------------------------------------------------
1 | package org.jetbrains.two.test
2 |
3 | import org.jetbrains.two.TwoClass
4 | import kotlin.test.Test
5 |
6 | class TestClass {
7 | @Test
8 | fun test() {
9 | TwoClass().use(-20)
10 | }
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/main/kotlin/kotlinx/kover/gradle/aggregation/commons/artifacts/KoverUsageAttr.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package kotlinx.kover.gradle.aggregation.commons.artifacts
6 |
7 | import org.gradle.api.attributes.*
8 |
9 | internal interface KoverUsageAttr: Usage {
10 | companion object {
11 | const val VALUE = "kover"
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/main/kotlin/kotlinx/kover/gradle/aggregation/commons/names/PluginId.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package kotlinx.kover.gradle.aggregation.commons.names
6 |
7 | internal object PluginId {
8 | const val KOTLIN_JVM_PLUGIN_ID = "org.jetbrains.kotlin.jvm"
9 | const val KOTLIN_ANDROID_PLUGIN_ID = "org.jetbrains.kotlin.android"
10 | const val KOTLIN_MULTIPLATFORM_PLUGIN_ID = "org.jetbrains.kotlin.multiplatform"
11 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/main/kotlin/kotlinx/kover/gradle/aggregation/commons/names/SettingsNames.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package kotlinx.kover.gradle.aggregation.commons.names
6 |
7 | internal object SettingsNames {
8 | const val DEPENDENCY_AGENT = "koverJar"
9 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/main/kotlin/kotlinx/kover/gradle/aggregation/settings/dsl/KoverNames.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package kotlinx.kover.gradle.aggregation.settings.dsl
6 |
7 | internal object KoverNames {
8 | val settingsExtensionName = "kover"
9 | }
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/main/kotlin/kotlinx/kover/gradle/plugin/appliers/reports/ReportsVariantApplier.kt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Kotlin/kotlinx-kover/49fe12ac3646f99a65e1396d025166e7266aef25/kover-gradle-plugin/src/main/kotlin/kotlinx/kover/gradle/plugin/appliers/reports/ReportsVariantApplier.kt
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/main/kotlin/kotlinx/kover/gradle/plugin/dsl/KoverGradlePluginDsl.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package kotlinx.kover.gradle.plugin.dsl
6 |
7 | /**
8 | * Marker annotation for public DSL of the Kover Gradle Plugin.
9 | */
10 | @DslMarker
11 | annotation class KoverGradlePluginDsl
12 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/main/kotlin/kotlinx/kover/gradle/plugin/tools/kover/IcReport.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.gradle.plugin.tools.kover
2 |
3 | import kotlinx.kover.features.jvm.KoverLegacyFeatures
4 | import kotlinx.kover.gradle.plugin.commons.ReportContext
5 | import java.io.File
6 |
7 |
8 | internal fun ReportContext.koverBinaryReport(binaryFile: File) {
9 | KoverLegacyFeatures.aggregateIc(
10 | binaryFile,
11 | filters.toKoverFeatures(),
12 | tempDir,
13 | files.reports.toList(),
14 | files.outputs.toList()
15 | )
16 | }
17 |
18 |
--------------------------------------------------------------------------------
/kover-gradle-plugin/src/main/kotlin/kotlinx/kover/gradle/plugin/util/Util.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package kotlinx.kover.gradle.plugin.util
6 |
7 | import java.io.File
8 |
9 | internal val ONE_HUNDRED = 100.toBigDecimal()
10 |
11 |
12 | internal fun File.subdirs(): List {
13 | return listFiles { it ->
14 | it.exists() && it.isDirectory
15 | }?.toList() ?: emptyList()
16 | }
17 |
18 |
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/additional-binary-report/additional.ic:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Kotlin/kotlinx-kover/49fe12ac3646f99a65e1396d025166e7266aef25/kover-maven-plugin/examples/additional-binary-report/additional.ic
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/additional-binary-report/src/main/kotlin/Main.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | class Main {
4 | fun used() {
5 | println("used")
6 | }
7 |
8 | fun unused() {
9 | println("unused")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/additional-binary-report/src/test/kotlin/MainKtTest.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | import kotlin.test.Test
4 |
5 | class MainKtTest {
6 | @Test
7 | fun myTest() {
8 | Main().used()
9 | }
10 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/all-goals/src/main/kotlin/Main.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | class Main {
4 | fun used() {
5 | println("used")
6 | }
7 |
8 | fun unused() {
9 | println("unused")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/all-goals/src/test/kotlin/MainKtTest.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | import kotlin.test.Test
4 |
5 | class MainKtTest {
6 | @Test
7 | fun myTest() {
8 | Main().used()
9 | }
10 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/change-agent-line/src/main/kotlin/Main.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | class Main {
4 | fun used() {
5 | println("used")
6 | }
7 |
8 | fun unused() {
9 | println("unused")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/change-agent-line/src/test/kotlin/MainKtTest.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | import kotlin.test.Test
4 |
5 | class MainKtTest {
6 | @Test
7 | fun myTest() {
8 | Main().used()
9 | }
10 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/change-paths/src/main/kotlin/Main.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | class Main {
4 | fun used() {
5 | println("used")
6 | }
7 |
8 | fun unused() {
9 | println("unused")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/change-paths/src/test/kotlin/MainKtTest.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | import kotlin.test.Test
4 |
5 | class MainKtTest {
6 | @Test
7 | fun myTest() {
8 | Main().used()
9 | }
10 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/charset/src/main/kotlin/Main.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | class Main {
4 | fun used() {
5 | println("used")
6 | }
7 |
8 | fun unused() {
9 | println("unused")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/charset/src/test/kotlin/MainKtTest.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | import kotlin.test.Test
4 |
5 | class MainKtTest {
6 | @Test
7 | fun myTest() {
8 | Main().used()
9 | }
10 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/exclude-instrumentation/src/main/kotlin/Main.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | class Main {
4 | fun used() {
5 | println("used")
6 | }
7 |
8 | fun unused() {
9 | println("unused")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/exclude-instrumentation/src/main/kotlin/SecondClass.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | class SecondClass {
4 | fun used() {
5 | println("used")
6 | }
7 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/exclude-instrumentation/src/test/kotlin/MainKtTest.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | import kotlin.test.Test
4 |
5 | class MainKtTest {
6 | @Test
7 | fun myTest() {
8 | Main().used()
9 | SecondClass().used()
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/filters-common/src/main/kotlin/ExcludedByAnnotation.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package kotlinx.kover.maven.plugin.testing
6 |
7 | annotation class ExcludeAnnotation
8 |
9 | @ExcludeAnnotation
10 | class ExcludedByAnnotation {
11 | fun function() {
12 | println("Hello world")
13 | }
14 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/filters-common/src/main/kotlin/ExcludedByName.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package kotlinx.kover.maven.plugin.testing
6 |
7 | class ExcludedByName {
8 | fun function() {
9 | println("Hello world")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/filters-common/src/main/kotlin/ExcludedByParent.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package kotlinx.kover.maven.plugin.testing
6 |
7 | import java.lang.AutoCloseable
8 |
9 | class ExcludedByParent: AutoCloseable {
10 | fun function() {
11 | println("Hello world")
12 | }
13 |
14 | override fun close() {
15 | println("foo")
16 | }
17 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/filters-common/src/main/kotlin/Main.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | class Main {
4 | fun used() {
5 | println("used")
6 | }
7 |
8 | fun unused() {
9 | println("unused")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/filters-common/src/test/kotlin/MainKtTest.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | import kotlin.test.Test
4 |
5 | class MainKtTest {
6 | @Test
7 | fun myTest() {
8 | Main().used()
9 | }
10 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/filters-rules/src/main/kotlin/Main.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | class Main {
4 | fun used() {
5 | println("used")
6 | }
7 |
8 | fun unused() {
9 | println("unused")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/filters-rules/src/main/kotlin/SecondClass.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package kotlinx.kover.maven.plugin.testing
6 |
7 | import java.lang.AutoCloseable
8 |
9 | class SecondClass {
10 | fun function() {
11 | println("Hello world")
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/filters-rules/src/main/kotlin/ThirdClass.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package kotlinx.kover.maven.plugin.testing
6 |
7 | import java.lang.AutoCloseable
8 |
9 | class ThirdClass {
10 | fun function() {
11 | println("Hello world")
12 | }
13 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/filters-rules/src/test/kotlin/MainKtTest.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | import kotlin.test.Test
4 |
5 | class MainKtTest {
6 | @Test
7 | fun myTest() {
8 | Main().used()
9 | }
10 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/instrumentation-only/src/main/kotlin/Main.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | class Main {
4 | fun used() {
5 | println("used")
6 | }
7 |
8 | fun unused() {
9 | println("unused")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/instrumentation-only/src/test/kotlin/MainKtTest.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | import kotlin.test.Test
4 |
5 | class MainKtTest {
6 | @Test
7 | fun myTest() {
8 | Main().used()
9 | }
10 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/logs/src/main/kotlin/Main.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | class Main {
4 | fun used(flag: Boolean) {
5 | if (flag) {
6 | println("used")
7 | }
8 | println("false")
9 | }
10 |
11 | fun unused() {
12 | println("unused")
13 | }
14 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/logs/src/test/kotlin/MainKtTest.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | import kotlin.test.Test
4 |
5 | class MainKtTest {
6 | @Test
7 | fun myTest() {
8 | Main().used(true)
9 | }
10 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/merged-report/child1-tests/src/main/kotlin/TestUtils.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package kotlinx.kover.maven.plugin.testing
6 |
7 | class TestUtils {
8 | fun function() {
9 | println("Hello world")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/merged-report/child1-tests/src/test/kotlin/Child1Tests.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package kotlinx.kover.maven.plugin.testing
6 |
7 | import kotlin.test.Test
8 |
9 | class Child1Tests {
10 | @Test
11 | fun test() {
12 | TestUtils().function()
13 | Child1Class().function()
14 | }
15 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/merged-report/child1/src/main/kotlin/Child1Class.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package kotlinx.kover.maven.plugin.testing
6 |
7 | class Child1Class {
8 | fun function() {
9 | println("Hello world")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/merged-report/child2-2/src/main/kotlin/Child2ExtraClass.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package kotlinx.kover.maven.plugin.testing
6 |
7 | class Child2ExtraClass {
8 | fun function() {
9 | println("Hello world")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/merged-report/child2/src/main/kotlin/Child2Class.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package kotlinx.kover.maven.plugin.testing
6 |
7 | class Child2Class {
8 | fun function() {
9 | println("Hello world")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/multidir/src/extra/Secondary.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | */
4 |
5 | package kotlinx.kover.maven.plugin.testing
6 |
7 | class Secondary {
8 | fun function() {
9 | println("Hello world")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/multidir/src/main/kotlin/Main.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | class Main {
4 | fun used() {
5 | println("used")
6 | }
7 |
8 | fun unused() {
9 | println("unused")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/multidir/src/test/kotlin/MainKtTest.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | import kotlin.test.Test
4 |
5 | class MainKtTest {
6 | @Test
7 | fun myTest() {
8 | Main().used()
9 | }
10 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/prepend-agent-line/src/main/kotlin/Main.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | class Main {
4 | fun used() {
5 | println("used")
6 | }
7 |
8 | fun unused() {
9 | println("unused")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/prepend-agent-line/src/test/kotlin/MainKtTest.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | import kotlin.test.Test
4 |
5 | class MainKtTest {
6 | @Test
7 | fun myTest() {
8 | Main().used()
9 | }
10 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/site/src/main/kotlin/Main.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | class Main {
4 | fun used() {
5 | println("used")
6 | }
7 |
8 | fun unused() {
9 | println("unused")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/site/src/test/kotlin/MainKtTest.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | import kotlin.test.Test
4 |
5 | class MainKtTest {
6 | @Test
7 | fun myTest() {
8 | Main().used()
9 | }
10 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/skip-config/src/main/kotlin/Main.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | class Main {
4 | fun used() {
5 | println("used")
6 | }
7 |
8 | fun unused() {
9 | println("unused")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/skip-config/src/test/kotlin/MainKtTest.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | import kotlin.test.Test
4 |
5 | class MainKtTest {
6 | @Test
7 | fun myTest() {
8 | Main().used()
9 | }
10 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/skip-property/src/main/kotlin/Main.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | class Main {
4 | fun used() {
5 | println("used")
6 | }
7 |
8 | fun unused() {
9 | println("unused")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/skip-property/src/test/kotlin/MainKtTest.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | import kotlin.test.Test
4 |
5 | class MainKtTest {
6 | @Test
7 | fun myTest() {
8 | Main().used()
9 | }
10 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/titles/src/main/kotlin/Main.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | class Main {
4 | fun used() {
5 | println("used")
6 | }
7 |
8 | fun unused() {
9 | println("unused")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/titles/src/test/kotlin/MainKtTest.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | import kotlin.test.Test
4 |
5 | class MainKtTest {
6 | @Test
7 | fun myTest() {
8 | Main().used()
9 | }
10 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/verify-error/src/main/kotlin/Main.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | class Main {
4 | fun used() {
5 | println("used")
6 | }
7 |
8 | fun unused() {
9 | println("unused")
10 | }
11 |
12 | fun extra() {
13 | println("extra")
14 | }
15 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/verify-error/src/test/kotlin/MainKtTest.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | import org.junit.jupiter.api.Test
4 |
5 | class MainKtTest {
6 | @Test
7 | fun myTest() {
8 | Main().used()
9 | }
10 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/verify-pass/src/main/kotlin/Main.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | class Main {
4 | fun used() {
5 | println("used")
6 | }
7 |
8 | fun unused() {
9 | println("unused")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/verify-pass/src/test/kotlin/MainKtTest.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | import org.junit.jupiter.api.Test
4 |
5 | class MainKtTest {
6 | @Test
7 | fun myTest() {
8 | Main().used()
9 | }
10 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/verify-warn/src/main/kotlin/Main.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | class Main {
4 | fun used() {
5 | println("used")
6 | }
7 |
8 | fun unused() {
9 | println("unused")
10 | }
11 |
12 | fun extra() {
13 | println("extra")
14 | }
15 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/examples/verify-warn/src/test/kotlin/MainKtTest.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | import org.junit.jupiter.api.Test
4 |
5 | class MainKtTest {
6 | @Test
7 | fun myTest() {
8 | Main().used()
9 | }
10 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/src/functionalTest/resources/simplelogger.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 | #
4 | org.slf4j.simpleLogger.showThreadName = false
5 | org.slf4j.simpleLogger.showLogName = false
6 | org.slf4j.simpleLogger.showShortLogName= false
7 | org.slf4j.simpleLogger.levelInBrackets = true
8 | org.slf4j.simpleLogger.showDateTime = false
--------------------------------------------------------------------------------
/kover-maven-plugin/src/functionalTest/templates/tests/kotlin-empty-config/src/main/kotlin/Main.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | class Main {
4 | fun used() {
5 | println("used")
6 | }
7 |
8 | fun unused() {
9 | println("unused")
10 | }
11 | }
--------------------------------------------------------------------------------
/kover-maven-plugin/src/functionalTest/templates/tests/kotlin-empty-config/src/test/kotlin/MainKtTest.kt:
--------------------------------------------------------------------------------
1 | package kotlinx.kover.maven.plugin.testing
2 |
3 | import kotlin.test.Test
4 |
5 | class MainKtTest {
6 | @Test
7 | fun myTest() {
8 | Main().used()
9 | }
10 | }
--------------------------------------------------------------------------------
/kover-offline-runtime/examples/runtime-api/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | rootProject.name = "kover-offline-runtime-api-example"
--------------------------------------------------------------------------------
/kover-offline-runtime/examples/runtime-api/src/main/kotlin/DataClass.kt:
--------------------------------------------------------------------------------
1 | package org.jetbrains.kotlinx.kover
2 |
3 | data class DataClass(val state: Int)
--------------------------------------------------------------------------------
/kover-offline-runtime/examples/runtime-api/src/main/kotlin/Main.kt:
--------------------------------------------------------------------------------
1 | package org.jetbrains.kotlinx.kover
2 |
3 | class MainClass {
4 | var state: Int = 0;
5 | fun readState(): DataClass {
6 | return DataClass(10);
7 | }
8 |
9 | fun incrementState() {
10 | state++
11 | }
12 |
13 | }
14 |
15 | class UnusedClass {
16 | fun printHello() {
17 | println("Hello World!")
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | includeBuild("build-logic")
3 |
4 | plugins {
5 | kotlin("jvm") version embeddedKotlinVersion
6 | }
7 | }
8 |
9 | dependencyResolutionManagement {
10 | versionCatalogs {
11 | create("libs")
12 | }
13 | }
14 |
15 | rootProject.name = "kover"
16 | enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
17 | include(":kover-jvm-agent")
18 | include(":kover-features-jvm")
19 | include(":kover-gradle-plugin")
20 | include(":kover-maven-plugin")
21 | include(":kover-cli")
22 | include(":kover-offline-runtime")
23 |
--------------------------------------------------------------------------------