Skip to content

Commit

Permalink
Make e2e tests detect snapshot issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kubukoz committed Nov 9, 2024
1 parent b83f791 commit c249e1a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
13 changes: 5 additions & 8 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -232,15 +232,12 @@ lazy val e2e = module("e2e")
buildInfoKeys ++=
Seq[BuildInfoKey.Entry[_]]( // do you know how to simplify this? let me know please!
Def
.task((lsp / Compile / fullClasspath).value.map(_.data).map(_.toString))
.task {
s"""${(lsp / organization).value}::${(lsp / moduleName).value}:${(lsp / version).value}"""
}
.dependsOn(lsp / publishLocal)
.taskValue
.named("lspClassPath"),
Def
.task(
(lsp / Compile / mainClass).value.getOrElse(sys.error("didn't find main class in lsp"))
)
.taskValue
.named("lspMainClass"),
.named("lspArtifact")
),
publish / skip := true,
)
Expand Down
7 changes: 3 additions & 4 deletions modules/e2e/src/test/scala/playground/e2e/E2ETests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,9 @@ object E2ETests extends SimpleIOSuite {

val builder =
new ProcessBuilder(
"java",
"-cp",
BuildInfo.lspClassPath.mkString(":"),
BuildInfo.lspMainClass,
"cs",
"launch",
BuildInfo.lspArtifact,
)
// Watch process stderr in test runner
.redirectError(Redirect.INHERIT)
Expand Down

0 comments on commit c249e1a

Please sign in to comment.