Skip to content

Commit 1b434ce

Browse files
committed
Enable Scala Native tests with the test command on Scala 3
1 parent 988488f commit 1b434ce

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

modules/integration/src/test/scala/scala/cli/integration/TestTestDefinitions.scala

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -346,10 +346,9 @@ abstract class TestTestDefinitions extends ScalaCliSuite with TestScalaVersionAr
346346
expect(output.contains("Hello from tests"))
347347
}
348348

349-
if (actualScalaVersion.startsWith("2."))
350-
test("successful test native") {
351-
TestUtil.retryOnCi()(successfulNativeTest())
352-
}
349+
test("successful test native") {
350+
TestUtil.retryOnCi()(successfulNativeTest())
351+
}
353352

354353
test("failing test") {
355354
failingTestInputs.fromRoot { root =>
@@ -377,10 +376,9 @@ abstract class TestTestDefinitions extends ScalaCliSuite with TestScalaVersionAr
377376
expect(output.contains("Hello from tests"))
378377
}
379378

380-
if (actualScalaVersion.startsWith("2."))
381-
test("failing test native") {
382-
TestUtil.retryOnCi()(failingNativeTest())
383-
}
379+
test("failing test native") {
380+
TestUtil.retryOnCi()(failingNativeTest())
381+
}
384382

385383
test("failing test return code") {
386384
failingTestInputs.fromRoot { root =>
@@ -448,8 +446,7 @@ abstract class TestTestDefinitions extends ScalaCliSuite with TestScalaVersionAr
448446
}
449447
}
450448

451-
if (actualScalaVersion.startsWith("2."))
452-
test("utest native") {
449+
test("utest native") {
453450
TestUtil.retryOnCi()(utestNative())
454451
}
455452

0 commit comments

Comments
 (0)