coveragepy / coveragepy/coveragepy

Record package names during coverage capture

Open
#936 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
3.4k
Forks
525
Avg merge
18h 27m
Merged PRs (30d)
6

Description

Coverage object accepts both source paths and package names.
However, the currently captured schema does not record package names even when the source is specified in the form of the package names - only traced files are recorded.

It would be very helpful for reconciling coverage from multiple identical files located in different (unknown) locations on the file system, if Analysis object could provide package_name in addition to filename.

Contributor guide

No contributing guide indexed for this repository

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

Locate the Coverage object and Analysis schema, then trace how package-name sources are handled during coverage capture and how traced files become records. The work is done when captured analysis records include package_name alongside filename for package-based sources, with coverage tests verifying the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.