Skip to content

Commit 71110ad

Browse files
committed
#27 fixes for int testing
1 parent aad2a2e commit 71110ad

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

build.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name := "sbt-scoverage"
22

33
organization := "org.scoverage"
44

5-
version := "0.99.7"
5+
version := "0.99.8"
66

77
scalaVersion := "2.10.4"
88

src/main/scala/scoverage/ScoverageSbtPlugin.scala

+10-9
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ class ScoverageSbtPlugin extends sbt.Plugin {
1717
lazy val minimumCoverage = SettingKey[Double]("scoverage-minimum-coverage")
1818
lazy val failOnMinimumCoverage = SettingKey[Boolean]("scoverage-fail-on-minimum-coverage")
1919
lazy val highlighting = SettingKey[Boolean]("scoverage-highlighting", "enables range positioning for highlighting")
20-
lazy val postTestTask = taskKey[Unit]("scoverage-posttestcleanup")
20+
lazy val scoverageReport = taskKey[Unit]("scoverage-report")
21+
lazy val scoverageMultiReport = taskKey[Unit]("scoverage-multireport")
2122
}
2223

2324
import ScoverageKeys._
@@ -54,7 +55,7 @@ class ScoverageSbtPlugin extends sbt.Plugin {
5455
}
5556
},
5657

57-
postTestTask := {
58+
scoverageReport := {
5859
val cross = crossTarget.value
5960
val compileSourceDirectory = (scalaSource in Compile).value
6061
val baseDir = (baseDirectory in Compile).value
@@ -108,6 +109,10 @@ class ScoverageSbtPlugin extends sbt.Plugin {
108109
log.info(s"[scoverage] All done. Coverage was [${coverage.statementCoverageFormatted}%]")
109110
},
110111

112+
scoverageMultiReport := {
113+
114+
},
115+
111116
scalacOptions in ScoverageCompile ++= (if (highlighting.value) List("-Yrangepos") else Nil),
112117

113118
sources in ScoverageCompile <<= (sources in Compile),
@@ -152,18 +157,14 @@ class ScoverageSbtPlugin extends sbt.Plugin {
152157
(testDeps, scoverageDeps, oldClassDir) =>
153158
scoverageDeps ++ testDeps.filter(_.data != oldClassDir)
154159
},
155-
internalDependencyClasspath in ScoverageITest <<= (internalDependencyClasspath in IntegrationTest, internalDependencyClasspath in ScoverageITest, classDirectory in Compile) map {
156-
(testDeps, scoverageDeps, oldClassDir) =>
157-
scoverageDeps ++ testDeps.filter(_.data != oldClassDir)
158-
},
159160

160161
test in ScoverageTest := {
161162
(test in Test).value
162-
postTestTask.value
163+
scoverageReport.value
163164
},
164165
test in ScoverageITest := {
165-
(test in Test).value
166-
postTestTask.value
166+
(test in IntegrationTest).value
167+
scoverageReport.value
167168
},
168169

169170
// copy the test task into compile so we can do scoverage:test instead of scoverage-test:test etc

0 commit comments

Comments
 (0)