coverage: count the headless self-test, reporting ~46% (was ~35%)
build-test-release / release (push) Successful in 10m37s
build-test-release / release (push) Successful in 10m37s
The self-test builds the real wxWidgets table and renders every fixture through the real widgets, exercising ~27% of ui.rs (up from ~4%) -- but it runs as a separate binary, so a plain `cargo llvm-cov` (which only runs the #[test]s) never counted it, understating coverage. New ci/coverage.sh runs both the unit tests and the self-test under one instrumentation pass and merges them, excluding the vendored asic-rs / patched wx-rs from the report. Our-source line coverage is now ~46% (model 81%, naming 95%, fixtures 100%, credentials 92%); the remainder is click-driven dialogs and live-miner network I/O, which unit tests can't reach without hardware or heavy mocks. Badge, report, and README dev section updated. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6
This commit is contained in:
@@ -79,6 +79,7 @@ cargo test -p alkane-gui --release -- --ignored bench_ # microbenchmarks
|
||||
cargo clippy -p alkane-gui --no-deps --bins -- -D warnings # lint gate
|
||||
xvfb-run -a env ALKANE_SELFTEST=1 \
|
||||
"$CARGO_TARGET_DIR/release/alkane-toolkit" # headless UI self-test
|
||||
ci/coverage.sh --summary-only # coverage (tests + self-test)
|
||||
```
|
||||
|
||||
CI mirrors these: `verify.yml` runs the lint, tests, benchmarks, self-test, and
|
||||
|
||||
Reference in New Issue
Block a user