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