Skip to content

Commit

Permalink
Modified build settings so that licence headers in tests specs are up…
Browse files Browse the repository at this point in the history
…dated if required, rather than being ignored by sbt-auto-build.
  • Loading branch information
Darren Walker committed Jan 3, 2019
1 parent b32d6f6 commit a525e12
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,18 @@ lazy val microservice = Project(appName, file("."))
.settings(scalaSettings: _*)
.settings(publishingSettings: _*)
.settings(defaultSettings(): _*)
.settings(unitTestSettings: _*)
.settings(acceptanceTestSettings: _*)
.settings(scalaVersion := "2.11.11")
.settings(
libraryDependencies ++= appDependencies,
evictionWarningOptions in update := EvictionWarningOptions.default.withWarnScalaVersionEviction(false)
)
.settings(scoverageSettings)
.settings(
testOptions in Test := Seq(Tests.Filter(unitFilter)),
fork in Test := false,
addTestReportOption(Test, "test-reports")
)
.settings(Defaults.itSettings)
.settings(
testOptions in IntegrationTest := Seq(Tests.Filter(integrationFilter)),
Expand All @@ -84,18 +88,6 @@ lazy val microservice = Project(appName, file("."))
)
.settings(majorVersion := 0)

lazy val unitTestSettings =
inConfig(Test)(Defaults.testSettings) ++
Seq(
testOptions in Test := Seq(Tests.Filter(unitFilter)),
unmanagedSourceDirectories in Test := Seq(
baseDirectory.value / "test" / "unit",
baseDirectory.value / "test" / "util"
),
fork in Test := false,
addTestReportOption(Test, "test-reports")
)

lazy val acceptanceTestSettings =
inConfig(AcceptanceTest)(Defaults.testSettings) ++
Seq(
Expand Down

0 comments on commit a525e12

Please sign in to comment.