Skip to content

Commit

Permalink
project-manager/test uses TestLogProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
Akirathan committed Dec 18, 2023
1 parent e8ca9a9 commit ef71ecf
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -975,18 +975,7 @@ lazy val `project-manager` = (project in file("lib/scala/project-manager"))

requiredMods ++ Seq(runtimeMod)
},
Test / javaOptions ++= {
// We can't use org.enso.logger.TestLogProvider (or anything from our own logging framework here) because it is not
// in a module, and it cannot be simple wrapped inside a module.
// So we use plain ch.qos.logback with its configuration.
val testLogbackConf = (LocalProject(
"logging-service-logback"
) / Test / sourceDirectory).value / "resources" / "logback-test.xml"
Seq(
"-Dslf4j.provider=ch.qos.logback.classic.spi.LogbackServiceProvider",
s"-Dlogback.configurationFile=${testLogbackConf.getAbsolutePath}"
)
}
Test / javaOptions ++= testLogProviderOptions
)
.settings(
rebuildNativeImage := NativeImage
Expand Down

0 comments on commit ef71ecf

Please sign in to comment.