sbt / sbt-jacoco

an sbt plugin for JaCoCo Code Coverage
https://scala-sbt.org/sbt-jacoco/
Eclipse Public License 1.0
123 stars 67 forks source link

jacocoExcludes setting does not work #234

Open muncleben opened 2 years ago

muncleben commented 2 years ago

Expected vs Actual Behaviour

It should be set correctly with jacocoExcludes like below: jacocoExcludes := jacocoExcludes(Seq("com.bpshare.Application"))

Instead it shows error: Type mismatch Refer to the attachment screenshot for details.

Steps to Reproduce

In build.sbt file, try to exclude main Scala file with jacocoExcludes := jacocoExcludes(Seq("com.bpshare.Application")),

but it shows error: Type mismatch. Refer to the attachment screenshot for details.

Environment

Zejnilovic commented 1 year ago

Hello @muncleben, while I am just a user, I might have a solution for you.

jacocoExcludes := Seq("com.bsphare.Application")

No need to wrap it in the second jacocoExcludes.

dexterhu commented 1 year ago

also make sure it's inside the settings sequence block, depending on your project structure.