Skip to content

Commit 39aee02

Browse files
committed
Added debug option
1 parent 12be3a7 commit 39aee02

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ sbtPlugin := true
1313
resolvers += Resolver.mavenLocal
1414

1515
libraryDependencies ++= Seq(
16-
"org.scoverage" %% "scalac-scoverage-plugin" % "0.99.7"
16+
"org.scoverage" %% "scalac-scoverage-plugin" % "0.99.8"
1717
)
1818

1919
publishTo := Some(Resolver.url("sbt-plugin-releases",

src/main/scala/scoverage/ScoverageSbtPlugin.scala

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ class ScoverageSbtPlugin extends sbt.Plugin {
1010

1111
val OrgScoverage = "org.scoverage"
1212
val ScalacArtifact = "scalac-scoverage-plugin"
13-
val ScoverageVersion = "0.99.7"
13+
val ScoverageVersion = "0.99.8"
1414

1515
object ScoverageKeys {
1616
val excludedPackages = SettingKey[String]("scoverage-excluded-packages")
1717
val minimumCoverage = SettingKey[Double]("scoverage-minimum-coverage")
1818
val failOnMinimumCoverage = SettingKey[Boolean]("scoverage-fail-on-minimum-coverage")
19+
val scoverageDebug = settingKey[Boolean]("scoverage debug output")
1920
val highlighting = SettingKey[Boolean]("scoverage-highlighting", "enables range positioning for highlighting")
2021
val scoverageOutputCobertua = settingKey[Boolean]("enables cobertura XML report generation")
2122
val scoverageOutputXML = settingKey[Boolean]("enables xml report generation")
@@ -70,6 +71,7 @@ class ScoverageSbtPlugin extends sbt.Plugin {
7071
minimumCoverage := 0, // default is no minimum
7172
failOnMinimumCoverage := false,
7273
highlighting := false,
74+
scoverageDebug := false,
7375
scoverageOutputXML := true,
7476
scoverageOutputHTML := true,
7577
scoverageOutputCobertua := true,
@@ -82,7 +84,8 @@ class ScoverageSbtPlugin extends sbt.Plugin {
8284
Seq(
8385
"-Xplugin:" + classpath.getAbsolutePath,
8486
"-P:scoverage:excludedPackages:" + Option(excludedPackages.value).getOrElse(""),
85-
"-P:scoverage:dataDir:" + crossTarget.value.getAbsolutePath + "/scoverage-data"
87+
"-P:scoverage:dataDir:" + crossTarget.value.getAbsolutePath + "/scoverage-data",
88+
"-P:scoverage:debug:" + scoverageDebug.value
8689
)
8790
}
8891
},

0 commit comments

Comments
 (0)