@@ -17,7 +17,8 @@ class ScoverageSbtPlugin extends sbt.Plugin {
17
17
lazy val minimumCoverage = SettingKey [Double ](" scoverage-minimum-coverage" )
18
18
lazy val failOnMinimumCoverage = SettingKey [Boolean ](" scoverage-fail-on-minimum-coverage" )
19
19
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" )
21
22
}
22
23
23
24
import ScoverageKeys ._
@@ -54,7 +55,7 @@ class ScoverageSbtPlugin extends sbt.Plugin {
54
55
}
55
56
},
56
57
57
- postTestTask := {
58
+ scoverageReport := {
58
59
val cross = crossTarget.value
59
60
val compileSourceDirectory = (scalaSource in Compile ).value
60
61
val baseDir = (baseDirectory in Compile ).value
@@ -108,6 +109,10 @@ class ScoverageSbtPlugin extends sbt.Plugin {
108
109
log.info(s " [scoverage] All done. Coverage was [ ${coverage.statementCoverageFormatted}%] " )
109
110
},
110
111
112
+ scoverageMultiReport := {
113
+
114
+ },
115
+
111
116
scalacOptions in ScoverageCompile ++= (if (highlighting.value) List (" -Yrangepos" ) else Nil ),
112
117
113
118
sources in ScoverageCompile <<= (sources in Compile ),
@@ -152,18 +157,14 @@ class ScoverageSbtPlugin extends sbt.Plugin {
152
157
(testDeps, scoverageDeps, oldClassDir) =>
153
158
scoverageDeps ++ testDeps.filter(_.data != oldClassDir)
154
159
},
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
- },
159
160
160
161
test in ScoverageTest := {
161
162
(test in Test ).value
162
- postTestTask .value
163
+ scoverageReport .value
163
164
},
164
165
test in ScoverageITest := {
165
- (test in Test ).value
166
- postTestTask .value
166
+ (test in IntegrationTest ).value
167
+ scoverageReport .value
167
168
},
168
169
169
170
// copy the test task into compile so we can do scoverage:test instead of scoverage-test:test etc
0 commit comments