From f66b820ded4249902094ca79753b2dc572ad4769 Mon Sep 17 00:00:00 2001 From: Tom Grigg Date: Wed, 9 Dec 2020 10:37:11 -0800 Subject: [PATCH] community build: use sbt logger for munit tests This permits test output from munit to be controlled by the LogLevel setting of sbt. --- .../src/scala/dotty/communitybuild/projects.scala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/community-build/src/scala/dotty/communitybuild/projects.scala b/community-build/src/scala/dotty/communitybuild/projects.scala index 4ec1b5247780..07eca627ae4a 100644 --- a/community-build/src/scala/dotty/communitybuild/projects.scala +++ b/community-build/src/scala/dotty/communitybuild/projects.scala @@ -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;"