It would be great if someone took advantage of the incremental compilation of sbt and avoided the need to recompile the entire project every time you run the tests, which happens when you execute clean
. The following sequence though:
sbt> coverage
sbt> test
sbt> coverageReport
does not re-create the coverage report, but this one:
sbt> clean
sbt> coverage
sbt> test
sbt> coverageReport
For example, the following sequence will always generate the same coverage report (i.e. the report that was created for the first time):
sbt> coverage
sbt> test
sbt> coverageReport
here I modify one of my test files and run again:
sbt> coverage
sbt> test
sbt> coverageReport
source
share