Skip to content

Test Coverage Discrepancy #186

Description

@raman-nareika

Hello,

On Wednesday, I created the pull request, and the overall test coverage went up (total coverage increased by 0.39% in Code Coverage Diff Summary, and the total coverage increased by 0.04%). On Thursday, I renamed the file I've added for consistency (ConversationParticipantsService -> EmailAddressService) and got rid of code duplication, so Stmts changed from 16 to 12. So, the coverage decreased(see the second screenshot). Then I added one test for the uncovered method from the existing class (SecureMessageResource). Code Coverage Diff Summary increased again, while the total coverage didn't (+0.77% vs. -0.03%, see the third screenshot).

Could anyone explain how it's possible that the Cover column shows an increase in coverage, but the overall coverage decreased?

Wednesday PR
image

Renamed the class
image

Added one test for the uncovered method from the existing class
image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions