Skip to content

LBA REQ 053

github-actions[bot] edited this page Nov 19, 2026 · 2 revisions

LBA-REQ-053: Icon-editor LUnit test benchmark

Status

Proven

Area

Deployment / benchmark (ADR-0033 -- the 2-actor icon-editor grid, tester actor)

Statement

The system shall run the ni/labview-icon-editor LUnit suite via g-cli as a benchmark, so a fail-closed gate proves the committed test inventory is correctly derived and cross-plane comparable.

Rationale

This is the TESTER actor of the operator-directed 2-actor icon-editor grid (companion to the builder, LBA-REQ-051). The Rust-built g-cli (LBA-REQ-052) runs the project's real unit tests via g-cli lunit. The LUnit framework is installed from the project's CORRECT icon-editor-developer.vipc (the developer/test dependency) -- NOT the CI-runner runner_dependencies.vipc, which needlessly bundles the g-cli VIPM package (the launcher is built from Rust) and the PowerShell-automation glue.

Acceptance Criteria

  • g-cli --lv-ver 2026 --arch 64 lunit -- -r <report.xml> lv_icon_editor.lvproj discovers the project's LUnit test classes, runs them, and emits a JUnit report.
  • lunitTestBenchmark.mjs records the machine-independent test inventory (sorted class/case set + suite structure) plus the observed outcomes (passed/failed/errored).
  • validateLunitReceipt fails closed unless the inventory length matches the total, the resultHash re-derives, the verdict matches the rule, and the digest is intact.
  • Live evidence: g-cli lunit ran the suite on lba-golden -- 4 LUnit classes / 25 cases (10 passed, 2 failed, 8 errored, 5 setup/helper), a well-formed 14.7 KB JUnit report in 5.4 s. The 8 errors are window-geometry / INI tests that need a real editor window, unavailable under headless xvfb.

Verification

Historical statement (no longer implemented)

Supersession

Change Guidance

The tester experiments/lunit-test/lunitTestBenchmark.mjs plus its self-test are gated by lunit-test-benchmark in verify-local-gates and mapped in the RTM. The benchmark asserts the tester actor EXECUTED the suite + produced a well-formed report matching its inventory (the machine-independent identity), not that the icon-editor tests are all green (outcomes are environment-dependent). With builder (LBA-REQ-051) + tester proven, the 2-actor icon-editor grid is complete. Authored under the singular-requirement directive (one shall).

TestID

T-053

CodeRef

experiments/lunit-test/lunitTestBenchmark.mjs; experiments/lunit-test/verify-lunit-test-benchmark.selftest.mjs; experiments/lunit-test/fixtures/lunit-test-benchmark-receipt.json; experiments/verify-local-gates.mjs

RTM Status

Proven

Clone this wiki locally