Skip to content

Commit

Permalink
Integrate scoverage
Browse files Browse the repository at this point in the history
  • Loading branch information
aldemirenes committed Aug 15, 2019
1 parent c110d6d commit e7641e0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ lazy val root = project.in(file("."))
.settings(BuildSettings.buildSettings)
.settings(BuildSettings.publishSettings)
.settings(MimaSettings.mimaSettings)
.settings(ScoverageSettings.settings)
.settings(Seq(
shellPrompt := { _ => name.value + " > " }
))
Expand Down
16 changes: 16 additions & 0 deletions project/ScoverageSettings.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import scoverage.ScoverageKeys._
import sbt.Keys._
import sbt._

object ScoverageSettings {

val settings = Seq(
coverageEnabled := true,
coverageMinimum := 80,
coverageFailOnMinimum := true,
coverageHighlighting := false,
(test in Test) := {
(coverageReport dependsOn (test in Test)).value
}
)
}
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.3")
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.5.0")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.0")

0 comments on commit e7641e0

Please sign in to comment.