Skip to content

Commit

Permalink
[BE2] add Dotty built-in coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis Bettens committed Jun 21, 2022
1 parent 3e76015 commit edeedd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions be2-scala/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,9 @@ copyProtocolTask := {
Compile/ run/ mainClass := Some("ch.epfl.pop.Server")
Compile/ packageBin/ mainClass := Some("ch.epfl.pop.Server")

lazy val scoverageSettings = Seq(
Compile/ coverageEnabled := true,
Test/ coverageEnabled := true,
packageBin/ coverageEnabled := false,
)
// https://github.com/ckipp01/dotty/blob/2fc33a36ea19752920d17596b5a6194c815a1873/docs/_docs/usage/coverage.md
Compile/ compile/ scalacOptions +=
s"-coverage-out:target/scala-${scalaVersion.value}/scoverage-data"

// Configure Sonar
sonarProperties := Map(
Expand Down
2 changes: 1 addition & 1 deletion be2-scala/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.0-M4")
addSbtPlugin("com.sonar-scala" % "sbt-sonar" % "2.3.0")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "1.1.0")
addSbtPlugin("com.rallyhealth.sbt" % "sbt-git-versioning" % "1.6.0")

0 comments on commit edeedd1

Please sign in to comment.