scoverage / scalac-scoverage-plugin

Scoverage Scala Code Coverage Core Libs
https://github.com/scoverage
Apache License 2.0
425 stars 126 forks source link

Refresh the excluded implementation #484

Closed rolandtritsch closed 2 years ago

rolandtritsch commented 2 years ago

Hi @ckipp01,

my name is Roland Tritsch. Thanks for all the hard work on making scoverage work (again) for Scala3.

I also need this and will spend some time on this over the next couple of weeks and will start to send PR's your way.

I will try to keep the PR's small. But that also means there will be more of them. Hope that is ok.

The first one/this one clarifies that the excludePackages/Files only works for Scala2.

Will also send a PR on sbt-scoverage to add a test for this.

I need this functionality to work for Scala3, but would assume that it will be a while before dotty supports this out of the box.

Therefore I am thinking to add a coverageExclude task to sbt-scoverage that will rewrite/cleanup the scoverage.coverage file (remove the excluded packages, classes, files).

This is can then be removed again as soon as dotty will support a comparable exclude capability.

Agreed?