繁体   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