Skip to content

Refresh the excluded implementation #484

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 27, 2022

Conversation

rolandtritsch
Copy link
Member

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?

Copy link
Member

@ckipp01 ckipp01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the pr! I've left a few comments. Note that there is also compilation issues that need to be taken care of before CI can run.

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).

My gut reaction is that this isn't a good idea. Feel free to create an issue about it in the sbt repo, and we can discuss there.

Copy link
Member

@ckipp01 ckipp01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again for the pr @rolandtritsch.

LGTM

@ckipp01 ckipp01 merged commit a3a5340 into scoverage:main Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants