How to ignore inner/nested classes with JaCoCo?

前端 未结 1 1667
予麋鹿
予麋鹿 2021-02-15 23:36

I\'m trying to ignore some generated classes, and the classes get ignored fine. But if those classes have inner classes, those classes still get included, despite the parent cla

相关标签:
1条回答
  • 2021-02-16 00:33

    After some searching, I found the answer myself. As it wasn't easily googleable, I'm putting it here for posterity's sake:

    The syntax mirrors that of the compiled Java naming convention:

    <configuration>
        <excludes>
            <exclude>**/*DB.*</exclude>
            <exclude>**/*DB$*.*</exclude>
            <exclude>**/*DTO.*</exclude>
            <exclude>**/*DTO$*.*</exclude>
        </excludes>
    </configuration>
    
    0 讨论(0)
提交回复
热议问题