Emma coverage on Enum types

后端 未结 3 1889
滥情空心
滥情空心 2021-02-01 01:34

I\'m running EclEmma, the Emma plugin for Eclipse, and the coverage report shows only partial coverage for an Enum I\'ve defined, even though it shows the only value in the Enum

3条回答
  •  梦谈多话
    2021-02-01 02:15

    We ran into a similar issue where the compiler generated methods on enumerations, like values(), typically were not being called in our test code. We worked around the problem by filtering the numbers of our enum objects out of our final report.

    This is why I don't like using code coverage as a measure of completeness. When I think of a better metric, I'll let you know. :)

提交回复
热议问题