File tree 3 files changed +13
-4
lines changed
3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ discussion on scoverage.
14
14
15
15
Add the plugin to your build with the following in project/plugins.sbt:
16
16
``` scala
17
- addSbtPlugin(" org.scoverage" % " sbt-scoverage" % " 1.3.0 " )
17
+ addSbtPlugin(" org.scoverage" % " sbt-scoverage" % " 1.3.1 " )
18
18
```
19
19
20
20
Then run the your tests with coverage enabled by entering:
Original file line number Diff line number Diff line change @@ -45,8 +45,17 @@ object ScoverageSbtPlugin extends AutoPlugin {
45
45
coverageCleanSubprojectFiles := true
46
46
)
47
47
48
- private def toggleCoverage (status: Boolean ): State => State =
49
- state => Project .extract(state).append(Seq (coverageEnabled := status), state)
48
+ /**
49
+ * The "coverage" command enables or disables instrumentation for all projects
50
+ * in the build.
51
+ */
52
+ private def toggleCoverage (status: Boolean ): State => State = { state =>
53
+ val extracted = Project .extract(state)
54
+ val newSettings = extracted.structure.allProjectRefs map { proj =>
55
+ coverageEnabled in proj := status
56
+ }
57
+ extracted.append(newSettings, state)
58
+ }
50
59
51
60
private lazy val coverageReport0 = Def .task {
52
61
val target = crossTarget.value
Original file line number Diff line number Diff line change 1
- version in ThisBuild := " 1.3.0 "
1
+ version in ThisBuild := " 1.3.1 "
You can’t perform that action at this time.
0 commit comments