这是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测试?
答案 0 :(得分:2)
sbt "multi-jvm:testOnly sharding.example.JobStreamRenderSpec"