Shallow talk about the popular test coverage tool

    技术2022-05-20  32

    the incompalibility between powermok and emma

    can not co-exist the mock object with java reflect

    Emma is inactive project, which has not been upgrade the version since 2006cobertura is nice,  sonar has the more pwoerful presentation ability by providing the chart & diagram according to the various perspectives.

    powermock's runwith annotation can be adapted in both method and class scope.

    be careful to design your target class, providde the setter method to make possible for the mock object injection


    最新回复(0)