当尝试使用带有“使用sbt”复选框的Intellij运行spec2测试时,我得到了Intellij构建的以下命令行:
[IJ]> {file:/home/user/IdeaProjects/foundation/}com/testOnly -- -specname io.proj.lake.SanityCheckSpec
最后还有一个例外:
java.lang.IllegalArgumentException: Argument unrecognized by ScalaTest's Runner: -specname