Skip to content

Instantly share code, notes, and snippets.

@erip
Last active July 24, 2018 20:47
Show Gist options
  • Save erip/04a610bacd21c0e58d634c1a4e8c823c to your computer and use it in GitHub Desktop.
Save erip/04a610bacd21c0e58d634c1a4e8c823c to your computer and use it in GitHub Desktop.
Weird scoverage issue
// Tried with 2.11.8, 2.12.3, 2.12.4
scalaVersion in ThisBuild := "2.12.3"
// Tried with scoverage 1.5.1, 1.6.0-M3
// Tried with sbt 1.0.4, 1.1.1
lazy val commonSettings = Seq(
parallelExecution in Test := false,
organization := "com.example.blah"
)
lazy val coverageSettings = Seq(
coverageEnabled := true,
coverageHighlighting := true
)
lazy val userApi = (project in file("user/user-api"))
.settings(commonSettings)
.settings(coverageSettings)
.settings(
libraryDependencies ++= Dependencies.userApi
)
lazy val `blah` = (project in file("."))
.settings(commonSettings)
.aggregate(userApi)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment