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

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
+7
source share
1 answer

, :

:

, - , - . , . , ... , , .

:

SBT , Scoverage , . , . (1, 2, 3,...), . , , .

0

Source: https://habr.com/ru/post/1016389/


All Articles