smartcontractkit / smartcontractkit/chainlink
[FEAT] Lack of Unified Test Coverage Reporting
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
- Attempt to generate a unified coverage report (e.g.,
go test -coverprofile=coverage.out ./...). - 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 coverto visualize combined coverage.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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