I am trying to exclude packages and files from the scoverage report.
However it does not exclude the specified files and packaged.
I am doing this:
<excludedPackages>*api.test.*</excludedPackages>
<excludedFiles>.*File.scala</excludedFiles>
Could someone suggest how it works for you ?
Cheers V.
Similar to https://stackoverflow.com/a/44346781/2370679
Add the following to your
build.sbt
file:To exclude packages (e.g. to exclude
*api.test.*
and*api.db*
packages):You can also use the syntax to exclude files:
For your specific example, you can try:
Reference: https://github.com/scoverage/sbt-scoverage#exclude-classes-and-packages