Full regular expressions are not supported by testOnly
. Wildcards are supported, however.
sbt> testOnly com.example.*Spec
Only the asterisk *
is interpreted specially here and not the periods. This will select all tests beginning with com.example.
and ending with Spec
.
Or just all test Spec
s:
sbt> testOnly *Spec
testOnly
and other testing information is documented here: http://www.scala-sbt.org/release/docs/Detailed-Topics/Testing
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…