Skip to content

Commit

Permalink
community build: use sbt logger for munit tests
Browse files Browse the repository at this point in the history
This permits test output from munit to be controlled by the LogLevel
setting of sbt.
  • Loading branch information
griggt committed Jan 11, 2021
1 parent 96401b6 commit f66b820
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@ final case class SbtCommunityProject(
++ s"""set dependencyOverrides in ThisBuild ++= ${dependencyOverrides.mkString("Seq(", ", ", ")")}; """
++ s"++$compilerVersion!; "

override val testCommand = s"$baseCommand$sbtTestCommand"
override val testCommand =
"""set testOptions in Global += Tests.Argument(TestFramework("munit.Framework"), "+l"); """
++ s"$baseCommand$sbtTestCommand"

override val publishCommand = if sbtPublishCommand eq null then null else
val disableDocCommand =
if sbtDocCommand eq null then "" else "set every useScala3doc := false;"
Expand Down

0 comments on commit f66b820

Please sign in to comment.