File tree Expand file tree Collapse file tree 10 files changed +5
-14
lines changed Expand file tree Collapse file tree 10 files changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name := "sbt-scoverage"
22
33import sbt .ScriptedPlugin .autoImport .scriptedLaunchOpts
44
5- lazy val scoverageVersion = " 2.0.0-M5 "
5+ lazy val scoverageVersion = " 2.0.0-RC1 "
66
77inThisBuild(
88 List (
Original file line number Diff line number Diff line change @@ -86,11 +86,9 @@ object CoverageMinimum {
8686
8787 def all = Def .setting {
8888 import ScoverageKeys ._
89- val stmtTotal =
90- math.max(coverageMinimum.value, coverageMinimumStmtTotal.value)
9189 All (
9290 total = CoverageMinimum (
93- statement = stmtTotal ,
91+ statement = coverageMinimumStmtTotal.value ,
9492 branch = coverageMinimumBranchTotal.value
9593 ),
9694 perPackage = CoverageMinimum (
Original file line number Diff line number Diff line change @@ -22,9 +22,6 @@ object ScoverageKeys {
2222 lazy val coverageSourceRoot = settingKey[File ](" the source root of the project" )
2323 // format: on
2424
25- @ deprecated(" Use coverageMinimumStmtTotal instead" , " v1.8.0" )
26- lazy val coverageMinimum =
27- settingKey[Double ](" see coverageMinimumStmtTotal" )
2825 lazy val coverageMinimumStmtTotal =
2926 settingKey[Double ](" scoverage minimum coverage: statement total" )
3027 lazy val coverageMinimumBranchTotal =
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ object ScoverageSbtPlugin extends AutoPlugin {
4141 coverageEnabled := false ,
4242 coverageExcludedPackages := " " ,
4343 coverageExcludedFiles := " " ,
44- coverageMinimum := 0 , // default is no minimum
4544 coverageMinimumStmtTotal := 0 ,
4645 coverageMinimumBranchTotal := 0 ,
4746 coverageMinimumStmtPerPackage := 0 ,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ scalaVersion := "2.13.6"
44
55libraryDependencies += " org.scalameta" %% " munit" % " 0.7.29" % Test
66
7- coverageMinimum := 80
7+ coverageMinimumStmtTotal := 80
88
99coverageFailOnMinimum := true
1010
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ scalaVersion := "2.13.6"
44
55libraryDependencies += " org.scalameta" %% " munit" % " 0.7.29" % Test
66
7- coverageMinimum := 80
87coverageMinimumStmtTotal := 100
98coverageMinimumBranchTotal := 100
109coverageMinimumStmtPerPackage := 100
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ libraryDependencies += "org.specs2" %% "specs2-core" % "4.12.10" % "test"
66
77coverageDataDir := target.value / " custom-test"
88
9- coverageMinimum := 80
9+ coverageMinimumStmtTotal := 80
1010
1111coverageFailOnMinimum := true
1212
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ scalaVersion := "2.13.6"
44
55libraryDependencies += " org.scalameta" %% " munit" % " 0.7.29" % Test
66
7- coverageMinimum := 80
87coverageMinimumStmtTotal := 100
98coverageMinimumBranchTotal := 100
109coverageMinimumStmtPerPackage := 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
44
55libraryDependencies += " org.scalameta" %% " munit" % " 0.7.29" % Test
66
7- coverageMinimum := 80
7+ coverageMinimumStmtTotal := 80
88
99coverageFailOnMinimum := true
1010
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
44
55libraryDependencies += " org.scalameta" %% " munit" % " 0.7.29" % Test
66
7- coverageMinimum := 80
87coverageMinimumStmtTotal := 100
98coverageMinimumBranchTotal := 100
109coverageMinimumStmtPerPackage := 100
You can’t perform that action at this time.
0 commit comments