kotlinx-kover
kotlinx-kover copied to clipboard
Support Gradle Enterprise Test Distribution
Describe the bug Kover's built in default code coverage library is not currently compatible with Gradle Enterprise Test Distribution.
per: https://docs.gradle.com/enterprise/test-distribution/#kover_plugin
Test Distribution is not compatible with the default code coverage library embedded in the Kover Gradle plugin. However, the plugin provides the ability to use the JaCoCo coverage library instead. When JaCoCo library is used, the coverage data collected by the plugin will be automatically tracked.
Errors
Test execution failed on remote executor test-distribution-agent
> Failed to fork test JVM
Standard error from JVM:
At least 5 arguments expected but 1 found.
'/tmp/test-distribution999779801484124556/rootDir/common/build/tmp/testDebugUnitTest/kover-agent.args'
Expected arguments are:
1) data file to save coverage result
2) a flag to enable tracking per test coverage
3) a flag to calculate coverage for unloaded classes
4) a flag to use data file as initial coverage, also use it if several parallel processes are to write into one file
5) a flag to run line coverage or branch coverage otherwise
> Socket is closed
Expected behavior A clear and concise description of what you expected to happen.
Environment
- Kover Gradle Plugin version:
0.7.0-Alpha - Gradle version:
8.4 - Kotlin project type: Kotlin/Android
- Coverage Toolset (if customized in build script): Kover
- Other context important for this bug: [e.g. OS version]
This task will be taken into account when migrating to Kotlin Gradle Plugin.
In the future, it will be moved to the Kotlin task tracker, or closed if it loses relevance.