簡體   English   中英

如何獲得所有測試的列表?

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

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM