Jacoco exclude classes

前端 未结 3 982
迷失自我
迷失自我 2021-01-20 22:08

Hi I am trying to exclude classes for my code coverage using jacoco. I want to exclude the gui folder and all the classes inside it.

            


        
3条回答
  •  天涯浪人
    2021-01-20 22:42

    Maven include/exclude syntax is Ant. So I suggest you to have a look on fileset documentation, where you can find few illustrative examples.

    In your particular configuration, it could work this pattern

    **/gui/**
    

    assuming that you don't use the package name "gui" in other context.

提交回复
热议问题