[英]How to get the list of all test?
在sbt
當我鍵入testOnly
並按下tab
鍵后,我將獲得所有可用的測試:
sbt:plugger> testOnly
-- com.sweetsoft.detector.DetectorSpec com.sweetsoft.sender.SenderMessageSpec
是否有命令可以獲得所有可用的測試,而是按tab
鍵?
嘗試執行show test:definedTests
來自sbt的definedTests,它在我的機器輸出上
sbt:scala-213> show test:definedTests
[info] * Test example.RuleSpec : subclass(false, org.scalatest.Suite)
[info] * Test example.HelloSpec : subclass(false, org.scalatest.Suite)
檢查已定義的definedTests
給出
inspect test:definedTests
[info] Task: scala.collection.Seq[sbt.TestDefinition]
[info] Description:
[info] Provides the list of defined tests.
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.