bazelbuild / bazelbuild/bazel

Have a general mechanism for collecting code coverage

Open
#5,885 7 comments 14 reactions 0 assignees View on GitHub
coverage not stale P3 team-Rules-Server type: feature request
Dominant language
Java
Stars
25.8k
Forks
4.6k
Avg merge
2d 20h
Merged PRs (30d)
72

Description

Code coverage support in Bazel is poor and one reason is the lack of a general mechanism for collecting the code coverage information.

As briefly described in [Bazel coverage design doc](https://docs.google.com/document/d/1-ZWHF-Q-qCKf19ik-t33ie58BkNurrYYzKR4OLtcilY/edit?usp=sharing), the next steps towards a more general solution are:
* Design and implement a `coverage_toolchain`
* Migrate Bazel builtin C++ code coverage collection to use the new mechanism.

Contributor guide

Open the contributing guide

Research direction

Start by reading the linked Bazel coverage design doc, then inspect Bazel's existing builtin C++ code coverage collection. Define the coverage_toolchain mechanism and migrate the builtin C++ collection to it; completion requires both design goals to be implemented and validated.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system, testing-qa
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.