Skip to content

Commit

Permalink
Refactor integ-test path
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chu <[email protected]>
  • Loading branch information
noCharger committed Jul 5, 2024
1 parent b5715f6 commit 15c6b40
Show file tree
Hide file tree
Showing 44 changed files with 6 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/test-and-build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ jobs:
distribution: 'temurin'
java-version: 11

- name: Integ Test
run: sbt integtest/test

- name: Unit Test
run: sbt test

Expand Down
6 changes: 6 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,17 @@ lazy val flintSparkIntegration = (project in file("flint-spark-integration"))
},
assembly / test := (Test / test).value)

lazy val IntegrationTest = config("it") extend Test

// Test assembly package with integration test.
lazy val integtest = (project in file("integ-test"))
.dependsOn(flintCommons % "test->test", flintSparkIntegration % "test->test", pplSparkIntegration % "test->test", sparkSqlApplication % "test->test")
.configs(IntegrationTest)
.settings(
commonSettings,
inConfig(IntegrationTest)(Defaults.testSettings), // Apply test settings to the IntegrationTest configuration
IntegrationTest / scalaSource := baseDirectory.value / "src" / "it" / "scala",
IntegrationTest / javaSource := baseDirectory.value / "src" / "it" / "java",
name := "integ-test",
scalaVersion := scala212,
libraryDependencies ++= Seq(
Expand Down

0 comments on commit 15c6b40

Please sign in to comment.