0

I have a package co.company.microservice.configuration

Inside of this package a I found:

Some Configuration classes are ending as BlaBlaConfiguration.java

Some DTO classes are DTO BlaBlaDTO.java

Some Configuration classes are ending with Provider as BarBarProvider.java

In other packages as co.company.microservice.configuration.app

Some Configuration class are ending with Property as FooFooProperty.java

I would like to exclude DTO and Configuration classes recursively. Here my Proposal:

def jacocoExcludes = [

        //Exclude Ending with Configuration
        'co/company/microservice/configuration/**/*Configuration.**',

        //Exclude Ending with Property
        'co/company/microservice/configuration/**/*Property.**',

        //Exclude Ending with DTO
        'co/company/microservice/configuration/**/*DTO.**'
]

How should I edit my coverage.gradle file in order to exclude Configuration and DTO? Please check the asterisks after package!

joseluisbz
  • 1,491
  • 1
  • 36
  • 58

0 Answers0