Coverage

Generate first-party Swift package coverage (llvm-cov HTML, lcov, text summary). Use when the user asks for coverage, after expanding Tests/, or before claiming test work is done.

hoangsonww fb6e27a 829 B Updated

File contents

Coverage

Hermetic, first-party. Do not add Codecov, Coveralls, Code Climate, or similar.

./Scripts/coverage.sh

Writes gitignored coverage/:

  • summary.txt / summary.md — line coverage by file
  • coverage.lcov — for local tools
  • html/index.html — browsable report

CI already runs this on the test job and uploads coverage/ as an artifact. Open the HTML from the artifact; do not commit it.

Ignore patterns exclude .build and Tests/ so the denominator is package sources.

SKIP_TEST=1 ./Scripts/coverage.sh   # rebuild the report from an existing profile

hoangsonww/diffuse-native-apps/tree/main/.agents/skills/coverage commit fb6e27ae61

Frequently asked questions

npx skillmds@latest add hoangsonww/coverage