如何在sbt中运行多jvm测试?

时间:2014-09-15 07:19:21

标签: java testing jvm sbt

这是akka sharding example。我想从命令行JobStreamRenderSpec运行一个多jvm测试sbt clean test-only sharding.example.JobStreamRenderSpec并得到一个错误 -

[error] Expected ID character
[error] Not a valid command: sharding
[error] Expected project ID
[error] Expected configuration
[error] Expected ':' (if selecting a configuration)
[error] Expected key
[error] Not a valid key: sharding (similar: showTiming)
[error] sharding.example.JobStreamRenderSpec
[error]      

但是当我运行sbt clean test构建编译并且所有测试都运行时。

我做什么干或sbt不能运行多jvm测试?

1 个答案:

答案 0 :(得分:2)

sbt "multi-jvm:testOnly sharding.example.JobStreamRenderSpec"