how to ignore log statements in scoverage

151 Views Asked by At

i am using sbt-scoverage plugin for code coverage I am getting a very low code coverage of 21%, in codeCoverage report i can see red lines on all the log statements i have used in my classes how can i ignore that I have tried the solution given here as i am having the same prolem Is it possible to exclude logs from coverage in sbt project?

i have added this line in my build.sbt

coverageExcludedPackages := ".*\\.Reverse.*;org.slf4j.*"

it's not working I can still see the red color covering the log statement inside my code enter image description here

how can I fix this issue?

0

There are 0 best solutions below