The API's coverage is not measured, and coverage is nowhere to be seen over time #394
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
scripts/coverage.sh measures the cargo tests only (#390): web.rs reads 17% and daemon.rs 10% because the browser suite, which drives the API, runs a daemon that is not instrumented. Wanted: the browser suite run against an instrumented ipx (and directory), so the API's real coverage is known, and every coverage run's numbers (Rust, API, page) in Grafana beside the rest of iPX.
Done in
194a925.sh scripts/coverage.sh api: the browser suite against an instrumented ipx and ipx-directory. ipx 68.6% of its lines (web.rs 80%, daemon.rs 77%), ipx-directory 48.3% (its public pages, site.rs, 4%: the suite calls its API only), access.rs 0% (Cloudflare Access; unit tests 73%). node-exporter's textfile collector now serves ipx_coverage_lines{suite,part,state}, and the iPX dashboard has a Coverage row. Runs by hand; nothing schedules one.