Is it possible to run Scala SBT Scoverage without running 'sbt clean'?

997 views
Skip to first unread message

todor....@gmail.com

unread,
Apr 7, 2017, 9:47:01 AM4/7/17
to Scala code coverage tool

It would be great if one can take advantage of sbt incremental compilation and not having to recompile the whole project every time you run the tests, which is exactly what's happening after you've run clean. But running:

sbt> coverage
sbt> test
sbt> coverageReport

doesn't regenerate the coverage report, as would the following do:

sbt> clean
sbt> coverage
sbt> test
sbt> coverageReport

e.g The following sequence will always generate the same coverage report (i.e. the report that was generated the first time around:

sbt> coverage
sbt> test
sbt> coverageReport

here I change one of my test files and again run:

sbt> coverage
sbt> test
sbt> coverageReport
Reply all
Reply to author
Forward
0 new messages