Skip to content

Commit

Permalink
Added code coverage and README
Browse files Browse the repository at this point in the history
  • Loading branch information
Max-Meldrum committed Mar 1, 2017
1 parent 269f8d5 commit 7c8ba08
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
```
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
logLevel := Level.Warn

addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "0.8.0")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.0")

0 comments on commit 7c8ba08

Please sign in to comment.