File tree 10 files changed +5
-14
lines changed
10 files changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name := "sbt-scoverage"
2
2
3
3
import sbt .ScriptedPlugin .autoImport .scriptedLaunchOpts
4
4
5
- lazy val scoverageVersion = " 2.0.0-M5 "
5
+ lazy val scoverageVersion = " 2.0.0-RC1 "
6
6
7
7
inThisBuild(
8
8
List (
Original file line number Diff line number Diff line change @@ -86,11 +86,9 @@ object CoverageMinimum {
86
86
87
87
def all = Def .setting {
88
88
import ScoverageKeys ._
89
- val stmtTotal =
90
- math.max(coverageMinimum.value, coverageMinimumStmtTotal.value)
91
89
All (
92
90
total = CoverageMinimum (
93
- statement = stmtTotal ,
91
+ statement = coverageMinimumStmtTotal.value ,
94
92
branch = coverageMinimumBranchTotal.value
95
93
),
96
94
perPackage = CoverageMinimum (
Original file line number Diff line number Diff line change @@ -22,9 +22,6 @@ object ScoverageKeys {
22
22
lazy val coverageSourceRoot = settingKey[File ](" the source root of the project" )
23
23
// format: on
24
24
25
- @ deprecated(" Use coverageMinimumStmtTotal instead" , " v1.8.0" )
26
- lazy val coverageMinimum =
27
- settingKey[Double ](" see coverageMinimumStmtTotal" )
28
25
lazy val coverageMinimumStmtTotal =
29
26
settingKey[Double ](" scoverage minimum coverage: statement total" )
30
27
lazy val coverageMinimumBranchTotal =
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ object ScoverageSbtPlugin extends AutoPlugin {
41
41
coverageEnabled := false ,
42
42
coverageExcludedPackages := " " ,
43
43
coverageExcludedFiles := " " ,
44
- coverageMinimum := 0 , // default is no minimum
45
44
coverageMinimumStmtTotal := 0 ,
46
45
coverageMinimumBranchTotal := 0 ,
47
46
coverageMinimumStmtPerPackage := 0 ,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ scalaVersion := "2.13.6"
4
4
5
5
libraryDependencies += " org.scalameta" %% " munit" % " 0.7.29" % Test
6
6
7
- coverageMinimum := 80
7
+ coverageMinimumStmtTotal := 80
8
8
9
9
coverageFailOnMinimum := true
10
10
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ scalaVersion := "2.13.6"
4
4
5
5
libraryDependencies += " org.scalameta" %% " munit" % " 0.7.29" % Test
6
6
7
- coverageMinimum := 80
8
7
coverageMinimumStmtTotal := 100
9
8
coverageMinimumBranchTotal := 100
10
9
coverageMinimumStmtPerPackage := 100
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ libraryDependencies += "org.specs2" %% "specs2-core" % "4.12.10" % "test"
6
6
7
7
coverageDataDir := target.value / " custom-test"
8
8
9
- coverageMinimum := 80
9
+ coverageMinimumStmtTotal := 80
10
10
11
11
coverageFailOnMinimum := true
12
12
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ scalaVersion := "2.13.6"
4
4
5
5
libraryDependencies += " org.scalameta" %% " munit" % " 0.7.29" % Test
6
6
7
- coverageMinimum := 80
8
7
coverageMinimumStmtTotal := 100
9
8
coverageMinimumBranchTotal := 100
10
9
coverageMinimumStmtPerPackage := 100
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ scalaVersion := "3.2.0-RC1-bin-20220523-6783853-NIGHTLY" // TODO: Should be upda
4
4
5
5
libraryDependencies += " org.scalameta" %% " munit" % " 0.7.29" % Test
6
6
7
- coverageMinimum := 80
7
+ coverageMinimumStmtTotal := 80
8
8
9
9
coverageFailOnMinimum := true
10
10
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ scalaVersion := "3.2.0-RC1-bin-20220523-6783853-NIGHTLY" // TODO: Should be upda
4
4
5
5
libraryDependencies += " org.scalameta" %% " munit" % " 0.7.29" % Test
6
6
7
- coverageMinimum := 80
8
7
coverageMinimumStmtTotal := 100
9
8
coverageMinimumBranchTotal := 100
10
9
coverageMinimumStmtPerPackage := 100
You can’t perform that action at this time.
0 commit comments