Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Gradle Enterprise Test Distribution #476

Open
ZakTaccardi opened this issue Oct 8, 2023 · 1 comment
Open

Support Gradle Enterprise Test Distribution #476

ZakTaccardi opened this issue Oct 8, 2023 · 1 comment
Assignees
Labels

Comments

@ZakTaccardi
Copy link

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]
@ZakTaccardi ZakTaccardi added Bug Bug issue type S: untriaged Status: issue reported but unprocessed labels Oct 8, 2023
@ZakTaccardi ZakTaccardi changed the title Support Gradle Enterprise Support Gradle Enterprise Test Distribution Oct 8, 2023
@shanshin shanshin added Kover Coverage Tool Kover Gradle Plugin S: postponed Status: work on the issue is not in the short term plans and removed S: untriaged Status: issue reported but unprocessed labels Oct 9, 2023
@shanshin shanshin added Implement in KGP and removed Kover Coverage Tool Kover Gradle Plugin S: postponed Status: work on the issue is not in the short term plans labels Jan 3, 2025
@shanshin
Copy link
Collaborator

shanshin commented Jan 3, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants