I'm currently working on adding support for coverage for the rules_scala repo as a pre-req for my company to fully switch over to bazel from sbt.
I'm currently using ctx.configuration.coverage_enabled which seems to only enabled with you swap `test` for `coverage`, to add the scalac plugin. It requires that I pass it a directory to write data to. I thought that I may declare an output and use that but its a little awkward because the output would be empty for regular test runs.
I'm looking for more patterns for what others are doing and more specifically if there is already a standard location to write coverage to for languages using skylark rules. Many thanks!