Skip to content

[Feature] Support excludedPackages and excludedFiles for scala3 #485

Open
@rolandtritsch

Description

@rolandtritsch

Hi All,

right now scala3 does not support to exclude any files and/or packages when instrumenting the code.

The scala2 implementation supports this.

To make migrating to scala3 painless/possible, we need to find a way to support this in scala3 (somehow).

I see two options ...

  1. Add a/the ability to exclude files and packages to the scala3 implementation. That would be a/the preferred approach, but might take a while.
  2. Add a coverageExlude task to sbt-scoverage that will read the coverage from the data-dir and (re)writes it again without the excluded files and packages. That is obviously a hack. And should only be considered a workaround until the exclude functionality becomes abvailable in dotty. But this can be implemented fast and easy.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions