Skip to content

'diffCoverageReport.jacocoExecFiles' file collection is empty #77

@adityameesho

Description

@adityameesho

Describe the bug
FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine the dependencies of task ':diffCoverage'.

'diffCoverageReport.jacocoExecFiles' file collection is empty.

Desktop (please complete the following information):

  • OS: Linux, Mac
  • Gradle version: 7.5.1
  • Diff Coverage plugin version 0.9.5

To Reproduce
./gradlew clean diffCoverage

Expected behavior
The build fails, it would be great to add an option to fail silently. The use-case is in CI builds the diff might not have any test coverage and can lead to this failure.

Logs
FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine the dependencies of task ':diffCoverage'.

'diffCoverageReport.jacocoExecFiles' file collection is empty.

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output
Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions