From 7c8ba0804c90c991049ed6384c140f63e126fcdd Mon Sep 17 00:00:00 2001 From: Max Meldrum Date: Wed, 1 Mar 2017 10:42:40 +0100 Subject: [PATCH] Added code coverage and README --- README.md | 16 ++++++++++++++++ build.sbt | 4 ++-- project/plugins.sbt | 2 ++ 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..74d3ad6 --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# DBConnector + +Run just tests: +``` +$ sbt test +``` + +Run the tests with enabled coverage: +``` +$ sbt clean coverage test +``` + +To generate the coverage reports run +``` +$ sbt coverageReport +``` diff --git a/build.sbt b/build.sbt index da7d335..c085476 100644 --- a/build.sbt +++ b/build.sbt @@ -24,8 +24,8 @@ libraryDependencies ++= Seq( "com.datastax.spark" %% "spark-cassandra-connector" % "2.0.0-M3", "org.json4s" %% "json4s-native" % "3.5.0", "com.typesafe" % "config" % "1.3.1", - "org.scala-lang.modules" %% "scala-xml" % "1.0-RC3", - "org.scala-lang.modules" %% "scala-parser-combinators" % "1.0-RC1", + "org.scala-lang" % "scala-xml" % "2.11.0-M4", + "org.scala-lang.modules" %% "scala-parser-combinators" % "1.0.4", "com.typesafe.scala-logging" %% "scala-logging" % "3.5.0") // This part is required for spark to assemble diff --git a/project/plugins.sbt b/project/plugins.sbt index 79297e5..61554f9 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,3 +1,5 @@ logLevel := Level.Warn addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "0.8.0") +addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.0") +