-
Notifications
You must be signed in to change notification settings - Fork 7
Description
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:
- Identifying and parsing the CODEOWNERS file during a build analysis.
- Mapping each file in the coverage report to its designated owner(s).
- 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.
- 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.