-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
28 lines (27 loc) · 1.21 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
val appName = "help-to-save-test-admin-frontend"
lazy val microservice = Project(appName, file("."))
.enablePlugins(play.sbt.PlayScala, SbtDistributablesPlugin)
.disablePlugins(JUnitXmlReportPlugin) //Required to prevent https://github.com/scalatest/scalatest/issues/1427
.settings(
majorVersion := 2,
scalaVersion := "2.13.12",
libraryDependencies ++= AppDependencies.compile ++ AppDependencies.test()
)
.settings(scalafmtOnCompile := true)
.settings(scalacOptions += "-Wconf:src=routes/.*:s")
.settings(scalacOptions += "-Wconf:src=html/.*:s")
.settings(PlayKeys.playDefaultPort := 7007)
.settings(CodeCoverageSettings.settings: _*)
// Disable default sbt Test options (might change with new versions of bootstrap)
.settings(Test / testOptions -= Tests
.Argument("-o", "-u", "target/test-reports", "-h", "target/test-reports/html-report"))
// Suppress successful events in Scalatest in standard output (-o)
// Options described here: https://www.scalatest.org/user_guide/using_scalatest_with_sbt
.settings(
Test / testOptions += Tests.Argument(
TestFrameworks.ScalaTest,
"-oNCHPQR",
"-u",
"target/test-reports",
"-h",
"target/test-reports/html-report"))