-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Summary
Add Lua source coverage measurement via luacov so we can track which branches in src/fairvisor/*.lua are exercised by unit and integration tests.
Motivation
Currently CI runs busted spec/unit/ spec/integration/ (497 tests) but does not measure coverage. Python e2e pytest-cov measures test infrastructure — not useful. The only meaningful coverage metric for fairvisor is Lua coverage from busted.
Acceptance Criteria
-
luacovinstalled indocker/Dockerfile.test -
bin/ci/run_lua_tests.shrunsbusted --coverage spec/unit/ spec/integration/and generatesluacov.report.out - CI job uploads coverage artifact
- (stretch) Coverage badge in
README.mdvia codecov.io or shields.io - Existing CI job
coverage-reportupdated to use Lua coverage instead of Python e2e coverage (which measures test infrastructure, not business logic)
Implementation Notes
busted --coverageflag requiresluarocks install luacov- For badge:
luacov-coberturaconvertsluacov.stats.out→ Cobertura XML → upload to codecov.io → badge URL - Alternative lighter approach: parse
luacov.report.outin CI and post summary as step output
Out of scope
- Python e2e coverage (removed from scope — those files are tests themselves)
- Per-file coverage gating (just reporting for now)
Reactions are currently unavailable