简体   繁体   中英

How run multi jvm test in sbt?

Here is akka sharding example . I am tying to run one multi jvm test JobStreamRenderSpec from command line like sbt clean test-only sharding.example.JobStreamRenderSpec and get an error -

[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]      

But when I run sbt clean test build compile and all tests runs.

What I do wring or sbt can not run multi-jvm tests?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM