Skip to content

Commit 84a7704

Browse files
committed
Adding coverage support
1 parent c0afa3b commit 84a7704

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
language: scala
22
scala:
33
- 2.10.2
4+
5+
script:
6+
- sbt clean coverage test && sbt coverageAggregate
7+
8+
after_success:
9+
- sbt coveralls

build.sbt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,13 @@ autoCompilerPlugins := true
3939
addCompilerPlugin("org.scala-lang.virtualized.plugins" % "continuations" % virtScala)
4040

4141
scalacOptions += "-P:continuations:enable"
42+
43+
// code coverage
44+
45+
resolvers += Classpaths.sbtPluginReleases
46+
47+
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.0.1")
48+
49+
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.0.0.BETA1")
50+
51+
scoverage.ScoverageSbtPlugin.ScoverageKeys.coverageHighlighting := false

0 commit comments

Comments
 (0)