Exclude methods from code coverage with Cobertura

后端 未结 5 1663
情话喂你
情话喂你 2020-11-27 14:22

Is there a way to exclude code from inclusion into Cobertura coverage reports? We have some methods that should not be included in the coverage report and therefore not driv

5条回答
  •  执笔经年
    2020-11-27 14:55

    Remember to exclude inner classes too.

    path/to/class/MyClass*.class
    

    It took me ages to notice I was missing an asterisk!

提交回复
热议问题