Add a check for PR diff coverage

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Minor - P4
    • 4.18.0
    • Affects Version/s: None
    • Component/s: Infrastructure
    • None
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      Context

      After PYTHON-3898, we can implement a check to make sure that X% of new lines of code are covered in a given PR.  We can potentially use https://github.com/Bachmann1234/diff_cover. From their docs:

      "Diff coverage is the percentage of new or modified lines that are covered by tests. This provides a clear and achievable standard for code review: If you touch a line of code, that line should be covered. Code coverage is every developer's responsibility!"

      Acceptance Criteria

      Implement a check to make sure that X% of new lines of code are covered in a given PR.

      Pitfalls

      N/A

            Assignee:
            Steve Silvester
            Reporter:
            Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: