Skip to content

Commit 6da188f

Browse files
committed
fix JUnit setup in build
this time I tested it with an actual test :-)
1 parent aac1983 commit 6da188f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

build.sbt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
lazy val root = project.in(file("."))
2+
.aggregate(`scala-library-next`.jvm, `scala-library-next`.js)
23
.settings(
3-
publish / skip := true
4+
publish / skip := true,
5+
// With CrossType.Pure, the root project also picks up the sources in `src`
6+
Compile / unmanagedSourceDirectories := Nil,
7+
Test / unmanagedSourceDirectories := Nil,
48
)
59

610
lazy val `scala-library-next` = crossProject(JVMPlatform, JSPlatform)
@@ -9,6 +13,8 @@ lazy val `scala-library-next` = crossProject(JVMPlatform, JSPlatform)
913
.in(file("."))
1014
.jvmSettings(
1115
libraryDependencies += "junit" % "junit" % "4.13.1" % Test,
16+
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % Test,
17+
testOptions += Tests.Argument(TestFrameworks.JUnit, "-a", "-v"),
1218
)
1319
.jsConfigure(_.enablePlugins(ScalaJSJUnitPlugin))
1420
.settings(

0 commit comments

Comments
 (0)