Coverage requires files to have same directory structure
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:
- 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
- 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.
Interestingly enough we just went down this rabbit hole at my company and similarly discovered that the source code tree has to match package names with trial and error. It would be awesome if this were not required (we are currently debating if it is worth it) but in lieu of that, clear documentation would be much appreciated.
We ran into this issue as well I see you assigned it to yourself @mbland, just wanted to check if something was actively being developed around either a fix and/or documentation, happy to contribute reproducible examples if it helps!
@tim-yobi Yes, examples, a fix, and/or documentation would be helpful.
@tim-yobi Yes, examples, a fix, and/or documentation would be helpful.
here's an example i set up https://github.com/tim-yobi/coverage_example