Exclude sbt-scoverage syntax

I just started using congestion for the first time. Now it works fine for me, but I ran into a syntax problem excluding the package.

When my package structure is as follows:

- com
   - project
      - core
        - excluded
        - notExcluded

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

Thanks in advance!

+4
source share
1 answer

One of the following should work for you:

coverageExcludedPackages := ".*exclude.*"

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

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

+5
source

All Articles