Indicate the full package name in quotation marks.
doesn't work because it parses the command, as if the target testis the first argument to cover, and the qualified package name package.ScalaSpecis the second.
Instead, you must specify only one argument:
sbt coverage "test-only package.ScalaSpec"
test, 2- .
test-only package.ScalaSpec.