Skip to content

bazel coverage: "Coverage runner: cannot locate file" #7529

@ensonic

Description

@ensonic

Description of the problem / feature request:

Generating a test coverage report fails with the error above. It looks like this is the code
https://github.com/bazelbuild/bazel/blob/master/tools/test/collect_coverage.sh#L68
and LCOV_MERGER is empty. Running bazel coverage --combined_report=lcov //... does not help, since it leads to #6450.

Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

git clone https://github.com/googlecloudrobotics/core.git
cd core
bazel coverage //...

What operating system are you running Bazel on?

linux (debian)

What's the output of bazel info release?

release 0.22.0

Have you found anything relevant by searching the web?

Nothing on Stackoverflow/Github issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2We'll consider working on this in future. (Assignee optional)coveragestaleIssues or PRs that are stale (no activity for 30 days)team-Rules-JavaIssues for Java rulestype: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions