Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 950
Corne Elshof Avatar asked Mar 16 '16 10:03

Corne Elshof


1 Answers

One of following should work for you:

coverageExcludedPackages := ".*exclude.*"

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

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

like image 100
vvg Avatar answered Nov 07 '22 04:11

vvg