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

Delta coverage .kts setup SourceSet error #205

Open
Ascii91 opened this issue Dec 26, 2024 · 0 comments
Open

Delta coverage .kts setup SourceSet error #205

Ascii91 opened this issue Dec 26, 2024 · 0 comments
Assignees

Comments

@Ascii91
Copy link

Ascii91 commented Dec 26, 2024

Describe the bug
We attempted to integrate the Delta Coverage plugin into our Android project using Kover 0.7.6. During the execution of a Gradle command, the following error occurred:

Execution failed for task ':app:deltaCoverageRandom'.
> Error while evaluating property 'coverageBinaryFiles' of task ':app:deltaCoverageRandom'.
   > Failed to query the value of task ':app:deltaCoverageRandom' property 'coverageBinaryFiles'.
      > SourceSet with name 'main' not found.

Environment

  • Apple M3 Pro
  • OS: MacOS 15.2 (24C101)
  • Gradle version: 8.7.3
  • Delta Coverage plugin version 3.1.1

Steps To Reproduce

  1. Clone the sample project: DeltaCoverageDemo.
  2. Run the Gradle command

./gradlew test deltaCoverageRandom

Expected Behavior
The task should complete without errors.

Logs

Execution failed for task ':app:deltaCoverageRandom'.
> Error while evaluating property 'coverageBinaryFiles' of task ':app:deltaCoverageRandom'.
   > Failed to query the value of task ':app:deltaCoverageRandom' property 'coverageBinaryFiles'.
      > SourceSet with name 'main' not found.

Additional context
The error does not occur when the project is configured using .gradle instead of .ktx.
Working configuration:

sourceSets {
    main {
        java { srcDirs = ["src/java"] }
        resources { srcDir "src/resources" }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants