Skip to content

Add code-coverage-onboarding skill - #456

Open
fadidurah wants to merge 1 commit into
masterfrom
fadi/code-coverage-skill
Open

Add code-coverage-onboarding skill#456
fadidurah wants to merge 1 commit into
masterfrom
fadi/code-coverage-skill

Conversation

@fadidurah

Copy link
Copy Markdown
Contributor

What

Adds the code-coverage-onboarding skill under .github/skills/.

Why

A portable, reusable skill to set up end-to-end code-coverage tracking and to address coverage gaps from a pipeline run''s coverage reports.

Contents

  • scripts/coverage_report.py — stdlib-only engine with four subcommands:
    • parse — JaCoCo / Cobertura / LCOV report(s) → normalized NDJSON
    • report — NDJSON → Markdown summary
    • gaps — coverage report → ranked worklist of the least-covered classes/files (drives closing coverage gaps)
    • wow — Kusto → week-over-week HTML trend (grouped tables + Overall rows)
  • references/ — coverage generation (Gradle/AGP/Maven/.NET/Python/Node/C++/Go), Kusto setup, pipeline integration (ADO + GitHub Actions), report/email integration, and the find-gaps → write-tests → gate loop.

Addressing gaps from a pipeline run

Point the gaps subcommand at the JaCoCo XML artifacts from a pipeline run to get a prioritized list of the least-covered classes to target with new tests — e.g.:

python coverage_report.py gaps --input <path-to-jacoco-xml(s)>

Compiled artifacts (__pycache__, .pyc) and the packaged .skill file are intentionally excluded.

Portable skill to set up end-to-end code-coverage tracking and to raise
coverage. Core is scripts/coverage_report.py (stdlib-only) with four
subcommands: parse (JaCoCo/Cobertura/LCOV -> normalized NDJSON), report
(NDJSON -> Markdown), gaps (ranked worklist of least-covered classes/files
from a coverage report, for closing coverage gaps), and wow (Kusto ->
week-over-week HTML trend). Includes references for coverage generation,
Kusto setup, pipeline integration, report/email integration, and the
find-gaps -> write-tests -> gate loop for increasing coverage.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6bbcda86-3ea3-48c4-80da-45481bc4967a
@fadidurah
fadidurah requested a review from a team as a code owner August 3, 2026 01:50
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

❌ Work item link check failed. Description does not contain AB#{ID}.

Click here to Learn more.

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

Successfully merging this pull request may close these issues.

1 participant