Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract node testkit #3964

Merged
merged 18 commits into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
29 changes: 21 additions & 8 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,23 @@ lazy val `lang-tests-js` = project
testFrameworks += new TestFramework("utest.runner.Framework")
)

lazy val node = project.dependsOn(`lang-jvm`, `lang-testkit` % "test;test->test")
lazy val node = project.dependsOn(`lang-jvm`)

lazy val `grpc-server` = project.dependsOn(node % "compile;test->test;runtime->provided")
lazy val `ride-runner` = project.dependsOn(node % "compile;test->test", `grpc-server`)
lazy val `node-it` = project.dependsOn(node % "compile;test->test", `lang-testkit`, `repl-jvm`, `grpc-server`)
lazy val `node-generator` = project.dependsOn(node % "compile->test")
lazy val benchmark = project.dependsOn(node % "compile;test->test")
lazy val `node-testkit` = project
.in(file("node/testkit"))
.dependsOn(`node`, `lang-testkit`)

lazy val `node-tests` = project
.in(file("node/tests"))
.dependsOn(`lang-testkit` % "test->test", `node-testkit`)
.settings(libraryDependencies ++= Dependencies.nodeTests)

lazy val `grpc-server` =
project.dependsOn(node % "compile;runtime->provided", `node-testkit`, `node-tests` % "test->test")
lazy val `ride-runner` = project.dependsOn(node, `grpc-server`, `node-tests` % "test->test")
lazy val `node-it` = project.dependsOn(`repl-jvm`, `grpc-server`, `node-tests` % "test->test")
lazy val `node-generator` = project.dependsOn(node, `node-testkit`, `node-tests` % "compile->test")
lazy val benchmark = project.dependsOn(node, `node-tests` % "test->test")

lazy val repl = crossProject(JSPlatform, JVMPlatform)
.withoutSuffixFor(JVMPlatform)
Expand Down Expand Up @@ -105,7 +115,8 @@ lazy val `repl-jvm` = repl.jvm
)
)

lazy val `repl-js` = repl.js.dependsOn(`lang-js`)
lazy val `repl-js` = repl.js
.dependsOn(`lang-js`)
.settings(
libraryDependencies += "org.scala-js" %%% "scala-js-macrotask-executor" % "1.1.1"
)
Expand All @@ -123,6 +134,8 @@ lazy val `waves-node` = (project in file("."))
`repl-jvm`,
node,
`node-it`,
`node-testkit`,
`node-tests`,
`node-generator`,
benchmark,
`repl-js`,
Expand Down Expand Up @@ -218,7 +231,7 @@ checkPRRaw := Def
(`lang-js` / Compile / fastOptJS).value
(`lang-tests-js` / Test / test).value
(`grpc-server` / Test / test).value
(node / Test / test).value
(`node-tests` / Test / test).value
(`repl-js` / Compile / fastOptJS).value
(`node-it` / Test / compile).value
(benchmark / Test / compile).value
Expand Down
12 changes: 12 additions & 0 deletions lang/testkit/build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
publishTo := sonatypePublishToBundle.value
publish / skip := false
homepage := Some(url("https://docs.waves.tech/en/ride/"))
developers := List(
Developer("ismagin", "Ilya Smagin", "[email protected]", url("https://github.com/ismagin")),
Developer("asayadyan", "Artyom Sayadyan", "[email protected]", url("https://github.com/xrtm000")),
Developer("mpotanin", "Mike Potanin", "[email protected]", url("https://github.com/potan")),
Developer("irakitnykh", "Ivan Rakitnykh", "[email protected]", url("https://github.com/mrkraft"))
)

Compile / packageDoc / publishArtifact := true
Test / packageDoc / publishArtifact := false
17 changes: 17 additions & 0 deletions node/testkit/build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
publishTo := sonatypePublishToBundle.value
publish / skip := false
homepage := Some(url("https://waves.tech/"))
developers := List(
Developer("ismagin", "Ilya Smagin", "[email protected]", url("https://github.com/ismagin")),
Developer("asayadyan", "Artyom Sayadyan", "[email protected]", url("https://github.com/xrtm000")),
Developer("mpotanin", "Mike Potanin", "[email protected]", url("https://github.com/potan")),
Developer("irakitnykh", "Ivan Rakitnykh", "[email protected]", url("https://github.com/mrkraft")),
Developer("akiselev", "Alexey Kiselev", "[email protected]>", url("https://github.com/alexeykiselev")),
Developer("phearnot", "Sergey Nazarov", "[email protected]", url("https://github.com/phearnot")),
Developer("tolsi", "Sergey Tolmachev", "[email protected]", url("https://github.com/tolsi")),
Developer("vsuharnikov", "Vyatcheslav Suharnikov", "[email protected]", url("https://github.com/vsuharnikov")),
Developer("ivan-mashonskiy", "Ivan Mashonskii", "[email protected]", url("https://github.com/ivan-mashonskiy"))
)

Compile / packageDoc / publishArtifact := true
Test / packageDoc / publishArtifact := false
Loading