smartcontractkit / smartcontractkit/chainlink

[FEAT] Lack of Unified Test Coverage Reporting

Open
#18,655 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
8.2k
Forks
2k
Avg merge
1d 23h
Merged PRs (30d)
202

Description

Description

There is no unified or automated way to generate and view test coverage reports across all test suites. This makes it difficult to assess overall test coverage and identify untested code paths.

Environment

  • Chainlink repo: develop branch
  • Go 1.22+
  • OS: Linux 6.11.0-29-generic

Examples

  • No top-level script or Makefile target for generating a combined coverage report.
  • Individual packages may generate coverage, but not aggregated.

Steps to Reproduce

  1. Attempt to generate a unified coverage report (e.g., go test -coverprofile=coverage.out ./...).
  2. Observe that results are fragmented or missing for some packages.

Additional Info

  • Consider adding a Makefile target or script for unified coverage.
  • Use tools like go tool cover to visualize combined coverage.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining the repository's existing test commands and any top-level Makefile or scripts, then run the reported go test -coverprofile=coverage.out ./... command to identify fragmented or missing results. Compare the package outputs with go tool cover and define a unified report workflow. Done means a documented or automated top-level command generates and makes the combined coverage report viewable across the test suites.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
build-system, testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.