Skip to content

FileNotFoundException when using a library published with scoverage enabled #306

Open
@chuwy

Description

@chuwy

I built and published library X, using sbt-scoverage 1.6.1 and following settings:

coverageEnabled := true,
coverageMinimum := 50,
coverageFailOnMinimum := true,
coverageHighlighting := false,
(test in Test) := {
  coverageReport.dependsOn(test in Test).value
}

Now, I'm trying to build library Y without scoverage enabled, but with dependency on X. Travis gives me the following exception:

Caused by: java.io.FileNotFoundException: /home/travis/build/mycompany/X/submodule-of-X/target/scala-2.12/scoverage-data/scoverage.measurements.97 (No such file or directory)

I think the solution is to disable scoverage during X's publish (at least what I see in simlar #84 and #228), but I just wanted to raise this as a bug, because it feels very confusing that someone can enable a minor enhancement in their lib and crash other's people builds.

Thanks!

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