How to run all scalatest of a multi-modules sbt with intellij?

寵の児 提交于 2019-12-20 12:09:34

问题


I can run:

  1. a specific scala test
    • either by right clicking on the test and choose run
    • or if I have run it once previously, by selecting the test in run menu > run...
  2. I can run all junit tests by making a new run/debug configuration > + > junit > test kind = all in package > search for tests = in whole project
  3. I can run all scalatest (or junit) of one sub-project: right click on the project > run > scalatest in [module name]

But if I do the same as (2) with a scala test (+ > scala test > test kind...) the first test fails very strangely (it seems an object is not instantiated) while the same test pass if I run it using (1) or (3)

Config:

  • sbt with multiple subproject
  • intellij CE 15.0.2
  • scala plugin 2.1.0
  • scala 2.10

Bonus question: how to run all tests (junit and scalatest)?

来源:https://stackoverflow.com/questions/35523333/how-to-run-all-scalatest-of-a-multi-modules-sbt-with-intellij

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!