Logger.isDebugEnabled () kills my code coverage. I plan to exclude it while working cobertura

I tried adding to org.slf4j. * in cobertura.exclude. but it is useless.
my build file

require 'buildr/java/cobertura'
require 'buildr/scala'
require 'buildr/myProject'
.....
.....
compile.options.other = %w(-encoding UTF-8)
cobertura.exclude= 'org.slf4j.*'
.....
.....

Please suggest how to proceed.

thanks in advance

0
source share
1 answer

The problem is that cobertura.excludeexcluding files / classes from your project from tools.

What you want to use is cobertura.ignore, for example,

cobertura.ignore 'java.util.logging.*'

which takes a regular expression of the class / method name to ignore.

Ant https://github.com/cobertura/cobertura/wiki/Ant-Task-Reference:

Cobertura , "" . perl 5 . , ignore. . , , excludeClasses.

0

Source: https://habr.com/ru/post/1622801/


All Articles