Skip to content

Commit c187075

Browse files
committed
Enable in scala port tests.
1 parent dca9aee commit c187075

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

source/ports/scala_port/build.sbt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import Tests._
2+
13
lazy val commonSettings = Seq(
24
name := "metacall",
35
scalaVersion := "2.13.4",
@@ -53,8 +55,10 @@ lazy val root = (project in file("."))
5355
.settings(commonSettings: _*)
5456
.settings(
5557
name := "metacall",
56-
parallelExecution in Test := false,
57-
fork in (Test / run) := true,
58+
fork in Test := true,
59+
testGrouping in Test := (testGrouping in Test).value.flatMap { group =>
60+
group.tests map (test => Group(test.name, Seq(test), SubProcess(ForkOptions())))
61+
},
5862
dockerfile in docker := new Dockerfile {
5963
from("metacall/core:dev")
6064

source/ports/scala_port/src/test/scala/CallerSpec.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class CallerSpecRunner {
1212

1313
class CallerSpec extends AnyFlatSpec {
1414
"Caller" should "start successfully" in {
15+
println(s"----------------------- MetaCall started in ${ProcessHandle.current().pid()} -----------------------")
1516
Caller.start()
1617
}
1718

source/ports/scala_port/src/test/scala/MetaCallSpec.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ class MetaCallSpec extends AnyFlatSpec {
1919
val metacall = Bindings.instance
2020

2121
"MetaCall" should "initialize successfully" in {
22+
println(s"----------------------- MetaCall started in ${ProcessHandle.current().pid()} -----------------------")
23+
2224
// TODO: Remove this if we drop support for executing Scala outside of MetaCall
2325
// TODO: Create a destroy method wrapping this functionality
2426
if (System.getProperty("metacall.polyglot.name") != "core") {

0 commit comments

Comments
 (0)