Skip to content

How to run code coverage only for Scala targets #910

Open
@gergelyfabian

Description

@gergelyfabian

I have a project with three targets (among others):

java_library(...)

scala_library(...)

scala_test(...)

Where the scala_library depends on the java_library and the scala_test depends on scala_library. If I run code coverage with this setup, if will execute that only for the java_library and scala code coverage won't be executed.

If I remove the java_library target, then everything works ok.

There is one solution I found: add "--instrumentation_filter=//*:scala_library" as a parameter when running coverage.
Is there any better way to fix this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions