Cannot get uTest to see my tests

前端 未结 1 783
旧时难觅i
旧时难觅i 2021-01-19 00:27

I\'m trying to get uTest to work with ScalaJS and SBT. SBT is compiling the files, and uTest is running, but it simply ignores my tests. Try as I might I cannot find any dif

1条回答
  •  感情败类
    2021-01-19 00:57

    Your mistake lies in the dependency on uTest:

    libraryDependencies += "com.lihaoyi" %% "utest" % "0.3.0"
    

    This is a JVM dependency. To use the Scala.js-enabled dependency, use %%% instead of %%, like this:

    libraryDependencies += "com.lihaoyi" %%% "utest" % "0.3.0"
    

    Additionally, you probably want this dependency only in the Test configuration, so add % "test" a the end:

    libraryDependencies += "com.lihaoyi" %%% "utest" % "0.3.0" % "test"
    

    0 讨论(0)
提交回复
热议问题