Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write package coverage data to JSON #1

Open
kgryte opened this issue Aug 18, 2023 · 0 comments
Open

Write package coverage data to JSON #1

kgryte opened this issue Aug 18, 2023 · 0 comments

Comments

@kgryte
Copy link
Member

kgryte commented Aug 18, 2023

Currently, coverage data is found in HTML files. To ease extraction and metrics, would be good to write coverage data to a JSON file.

The first time coverage data for a particular package is written to this repo, a JSON file should be created and committed. For subsequent coverage runs, coverage data should be appended to the JSON file to allow for tracking coverage over time.

JSON coverage data can then be rolled up/aggregated within namespaces to provide coverage metrics for an entire namespace.

The format of the coverage data can be condensed. E.g.,

[ <num_statements>, <total_statements>, <statements_percentage>, <num_branches>, <total_branches>, <branches, percentage>, ... ]

The condensed format should be explicitly documented.

May also be good to append coverage data to a CSV file, as well, for ease of use in other analysis tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant