Skip to content

Commit 9c99c9a

Browse files
committed
community build: use sbt logger for munit tests
This permits test output from munit to be controlled by the LogLevel setting of sbt.
1 parent 1ec8041 commit 9c99c9a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

community-build/src/scala/dotty/communitybuild/projects.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,10 @@ final case class SbtCommunityProject(
154154
++ s"""set dependencyOverrides in ThisBuild ++= ${dependencyOverrides.mkString("Seq(", ", ", ")")}; """
155155
++ s"++$compilerVersion!; "
156156

157-
override val testCommand = s"$baseCommand$sbtTestCommand"
157+
override val testCommand =
158+
"""set testOptions in Global += Tests.Argument(TestFramework("munit.Framework"), "+l"); """
159+
++ s"$baseCommand$sbtTestCommand"
160+
158161
override val publishCommand = if sbtPublishCommand eq null then null else
159162
val disableDocCommand =
160163
if sbtDocCommand eq null then "" else "set every useScala3doc := false;"

0 commit comments

Comments
 (0)