We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enabling BuildInfoOption.BuildTime causes empty coverage reports and a reported coverage of 100%
Steps to reproduce:
sbt new scala/scala-seed.g8
Create a project/plugins.sbt:
project/plugins.sbt
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.10.0") addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.8.2")
Enable sbt-buildinfo on the project alongside these options:
buildInfoOptions += BuildInfoOption.BuildTime buildInfoPackage := "build" buildInfoKeys := Seq[BuildInfoKey](scalaVersion, sbtVersion)
Then just change the greeting lazy val in src/main/scala/example/Hello.scala into a def so it is accounted for by scoverage...
src/main/scala/example/Hello.scala
Finally, run test with coverage (more than once):
sbt coverage test coverageReport
The first time percentages are reported correctly, while subsequent runs will shows 100%/100% (and produce an empty report).
Deleting the target directory produces the right results again...
Note that if one were to remove the BuildTime option, reports would be generated perfectly each run.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Enabling BuildInfoOption.BuildTime causes empty coverage reports and a reported coverage of 100%
Steps to reproduce:
Create a
project/plugins.sbt
:Enable sbt-buildinfo on the project alongside these options:
Then just change the greeting lazy val in
src/main/scala/example/Hello.scala
into a def so it is accounted for by scoverage...Finally, run test with coverage (more than once):
sbt coverage test coverageReport
The first time percentages are reported correctly, while subsequent runs will shows 100%/100% (and produce an empty report).
Deleting the target directory produces the right results again...
Note that if one were to remove the BuildTime option, reports would be generated perfectly each run.
The text was updated successfully, but these errors were encountered: