[英]How to get the list of all test?
In sbt
when I type testOnly
and after press the tab
key, then I will get all available tests: 在
sbt
当我键入testOnly
并按下tab
键后,我将获得所有可用的测试:
sbt:plugger> testOnly
-- com.sweetsoft.detector.DetectorSpec com.sweetsoft.sender.SenderMessageSpec
Is there a command to get all available test, instead press the tab
key? 是否有命令可以获得所有可用的测试,而是按
tab
键?
Try executing show test:definedTests
from sbt, which on my machine outputs 尝试执行
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)
Inspection of definedTests
gives 检查已定义的
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.