Skip to content

Coverage requires files to have same directory structure #1774

@viveksjain

Description

@viveksjain

Coverage was not working for our repository. I saw a hint in #1453 that the folder structure has to match the package names. When I made that match, I got coverage for those files. I have 2 followup questions:

  1. I didn't see this documented anywhere and spent quite a while trying to get coverage working, it would have been very helpful to mention this in docs/coverage.md
  2. Does this limitation come from rules_scala or jacoco, and is there a way to not require it? I tried --instrumentation_filter '.*' but that didn't help.

Metadata

Metadata

Assignees

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