1

I'm using SpringSecurity plugin in my project and also Cobertura plugin for code coverage reports. The thing is I'd like the SpringSecurity specific classes (login and logout controllers, persistent login token and so on) to be excluded from my reports, since I assume they work properly. I'd like reports to contain only my project specific classes code coverage. Is there any way I can achieve that?

jjczopek
  • 3,319
  • 2
  • 32
  • 72

2 Answers2

2
coverage {

    exclusions = ['**/grails-app/conf/**','**/*any.other.package*','**/*any.class*']
    xml = true
    enabledByDefault = true
} 

Add the above snippet and configure the exclusions list in BuildConfig.groovy in grails-app/conf

Vinod R
  • 1,218
  • 10
  • 13
0

Please see Exclude code from code coverage with Cobertura

There is a similar post Excluding some classes from the cobertura report doesn't work, but it is still unresolved.

Community
  • 1
  • 1
Ritesh
  • 7,472
  • 2
  • 39
  • 43