I know that sbt clean coverage test
will generate coverage report using all test cases on the project, this takes ages to finish even with the warm JVM.
I wish to run coverage on the tests for the code I wrote so, I tried to run a single testcase like sbt coverage test-only package.ScalaSpec
and I get the following error.
ERROR
[scala-project] $ coverage test-only package.ScalaSpec
<set>:1: error: eof expected but 'package' found.
coverageEnabled in ThisBuild := true test-only package.ScalaSpec
^
[error] Error parsing expression.
sbt coverage "test-only package.ScalaSpec"
didn't work for me, it throws the same exception but this workssbt coverage "test:testOnly package.ScalaSpec"
– Podagra