regexscalasbtscoverage

sbt-scoverage exclude syntax


I just started using scoverage for the first time. It's working great for me now, but I encountered a problem with the syntax excluding a package.

When my package structure is the following:

- com
   - project
      - core
        - excluded
        - notExcluded

What should I add to my build.sbt to exclude the package: excluded?

Thanks in advance!


Solution

  • One of following should work for you:

    coverageExcludedPackages := ".*exclude.*"

    coverageExcludedPackages := "com\\.project\\.core\\.exclude.*"

    https://github.com/scoverage/sbt-scoverage