【发布时间】:2016-05-12 09:25:13
【问题描述】:
我有一个多模块项目,目前在打包过程中通过一个任务运行测试 -
val testALL = taskKey[Unit]("Test ALL Modules")
testALL := {
(test in Test in module_A).value
(test in Test in module_B).value
(test in Test in module_C).value
}
现在,我已将每个模块中的所有测试合并到一个顶级 ScalaTest 套件中。所以对于每个模块只想运行这个单一的顶级套件(命名为“blah.moduleA.TestSuite”等等)。一直在尝试在我的 build.sbt 中使用 testOnly 和 testFilter 来在每个模块中只运行这个单一的套件,但无法获得正确的语法。谁能告诉我该怎么做?
【问题讨论】: