Skip to content

Code coverage only working with deep directory structure #1101

Open
@sjoerdvisscher

Description

@sjoerdvisscher

If I have a file c.scala in package a.b then code coverage only seems to work if its path relative to the BUILD file ends with /a/b/. So it works if the BUILD file is in the root and I have /a/b/c.scala or /src/a/b/c.scala but not /a/b/src/c.scala. It also doesn't work if I have /a/b/c.scala but the BUILD file is in /a or in /a/b. This is only an issue with code coverage, it works fine for building, running and testing.

By "not working" I mean the file doesn't show up in the coverage results, there are no errors.

I found this Jacoco issue that seems related: jacoco/jacoco#939

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions