7

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!

Corne Elshof
  • 199
  • 3
  • 9

1 Answers1

10

One of following should work for you:

coverageExcludedPackages := ".*exclude.*"

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

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

vvg
  • 6,325
  • 19
  • 36