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> coverageReportdoesn't regenerate the coverage report, as would the following do:
sbt> clean
sbt> coverage
sbt> test
sbt> coverageReporte.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> coverageReporthere I change one of my test files and again run:
sbt> coverage
sbt> test
sbt> coverageReport