diff --git a/README.md b/README.md index ac023b9..5b71410 100644 --- a/README.md +++ b/README.md @@ -51,3 +51,8 @@ This library piggy-backs on `scala.concurrent.Future` semantics for handling err * Allow pluggable http client. * Allow pluggable json parser. * Turn search results into a stream/iterator. + +## Building +Normal build -> `sbt clean test` +With coverage -> `sbt clean coverage test coverageReport` + diff --git a/build.sbt b/build.sbt index 14092cd..3684012 100644 --- a/build.sbt +++ b/build.sbt @@ -50,3 +50,7 @@ sourceGenerators in Compile += Def.task { """.stripMargin) Seq(file) }.taskValue + +//SCoverage +coverageMinimum := 90 +coverageFailOnMinimum := true \ No newline at end of file diff --git a/project/plugins.sbt b/project/plugins.sbt index 8d1a4e2..4717b19 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -5,7 +5,7 @@ resolvers ++= Seq( Seq( "org.scalastyle" %% "scalastyle-sbt-plugin" % "0.7.0", - "org.scoverage" % "sbt-scoverage" % "1.3.1", + "org.scoverage" % "sbt-scoverage" % "1.3.5", "net.virtual-void" % "sbt-dependency-graph" % "0.8.2", "com.timushev.sbt" % "sbt-updates" % "0.1.9", "com.github.gseitz" % "sbt-release" % "1.0.3",