Skip to content

Commit 5ac83e5

Browse files
author
Dean Wampler
committed
Added scoverage, but only the command-line option "-coverage-out ..." appears to really work.
1 parent fca6210 commit 5ac83e5

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ _site
2525
project/metals.sbt
2626
.bsp/
2727
src/worksheet/
28+
coverage/

build.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ lazy val root = project
5757
// "-Xmigration", // Warn about constructs whose behavior may have changed since version.
5858
// "-Ysafe-init", // Warn on field access before initialization
5959
// "-Yexplicit-nulls", // For explicit nulls behavior.
60+
"-coverage-out", "coverage" // Output "scoverage" metrics (new for Scala 3.2.0)
6061
),
6162
Compile / console / scalacOptions := scalacOptions.value,
6263
fork := true,

project/plugins.sbt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ resolvers ++= Seq(
22
"Sonatype Releases" at "https://oss.sonatype.org/content/repositories/releases",
33
"Sonatype snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"
44
)
5+
6+
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.6")

0 commit comments

Comments
 (0)