Skip to content

Coverge support breaks when test has its own dependency on org.jacoco.* #202

Description

@Silic0nS0ldier

As a coverage tool, it is highly unlikely that a library will include a genuine dependency on org.jacoco.*. However;

Activity

  1. fmeum commented on Jul 25, 2024

    @fmeum
    Contributor

    We actually ran into this with Jazzer, which has a legitimate need to depend on JaCoCo during regular execution. Shading helped here: https://github.com/CodeIntelligenceTesting/jazzer/blob/main/third_party/jacoco_internal.BUILD

    Bazel has a built-in capability to detect classpath duplication, which I recently wired up to some extent. You could take a look at the test in bazelbuild/bazel@417c6b8#diff-61be5294c014a8b30530f4e0801697cf6d8c1181d8e4400164b62ef00c2be0d5 and see whether this setup catches the issue.

  2. added
    P3We're not considering to work on this, but happy to review a PR. (No assignee)
    on Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3We're not considering to work on this, but happy to review a PR. (No assignee)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions