-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
62 lines (59 loc) · 2.33 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import sbt.*
import uk.gov.hmrc.DefaultBuildSettings.addTestReportOption
import uk.gov.hmrc.sbtdistributables.SbtDistributablesPlugin
val appName = "help-to-save"
lazy val ItTest = config("it") extend Test
lazy val microservice = Project(appName, file("."))
.enablePlugins(play.sbt.PlayScala, SbtDistributablesPlugin)
.disablePlugins(JUnitXmlReportPlugin)
.settings(onLoadMessage := "")
.settings(majorVersion := 2)
.settings(CodeCoverageSettings.settings :_*)
.settings(scalaVersion := "2.13.13")
.settings(PlayKeys.playDefaultPort := 7001)
.settings(libraryDependencies ++= AppDependencies.compile ++ AppDependencies.test())
// 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"
)
)
//silence authprovider warnings - we need to use the deprecated authprovider
.settings(scalacOptions += "-Wconf:cat=deprecation:silent")
// 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"))
.configs(ItTest)
.settings(inConfig(ItTest)(Defaults.testSettings): _*)
.settings(
ItTest / Keys.fork := false,
ItTest / unmanagedSourceDirectories := (ItTest / baseDirectory)(base => Seq(base / "it")).value,
addTestReportOption(ItTest, "int-test-reports"),
ItTest / parallelExecution := false,
// Disable default sbt Test options (might change with new versions of bootstrap)
ItTest / testOptions -= Tests.Argument(
"-o",
"-u",
"target/int-test-reports",
"-h",
"target/int-test-reports/html-report"
),
ItTest / testOptions += Tests.Argument(
TestFrameworks.ScalaTest,
"-oNCHPQR",
"-u",
"target/int-test-reports",
"-h",
"target/int-test-reports/html-report")
)
.settings(scalacOptions += "-Wconf:src=routes/.*:s")