Skip to content

Feature Request: Aggregate Coverage by CODEOWNERS #1811

@zorro786

Description

@zorro786

Coveralls provides excellent line-by-line and file-by-file coverage analysis, which is incredibly useful for drilling down into specific changes. However, in large repositories or monorepos where multiple teams collaborate, it's difficult to assess coverage from a team-oriented perspective. Currently, if a repository's overall coverage is, for example, 85%, it's impossible to know if that's an average of Team A at 95% and Team B at 75%. This lack of visibility makes it challenging for individual teams to take ownership of their specific code quality and enforce their own coverage standards.

I propose that Coveralls adds support for parsing the GitHub CODEOWNERS file (located in the repo root, .github/, or docs/) to aggregate coverage statistics by the owners defined within it.

This would involve:

  1. Identifying and parsing the CODEOWNERS file during a build analysis.
  2. Mapping each file in the coverage report to its designated owner(s).
  3. Introducing a new view or filter in the Coveralls UI, such as a "Coverage by Owner" tab or a dropdown filter on the files page.
  4. This new view would display an aggregated summary for each code owner (e.g., @my-org/backend-team or @some-user), showing their total covered lines, total coverable lines, and overall coverage percentage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions