Skip to content

test-coverage hardening: raise low-ratio subsystems + audit placeholder tests #290

Description

@danielraffel

From the 2026-04-16 alpha-hardening audit:

  • Static test/code LOC ratio: 0.261 across 744 code files / 151,726 LOC.
  • core/dsl: 0.00 — header-only subsystem with no tests. Confirmed: only include/ + CMakeLists.txt.
  • Weak-surface subsystems (priority order): core/platform 0.28, core/host 0.32, core/osc 0.37, core/runtime 0.44, core/view 0.51, core/format 0.52.

Scope (prioritized, tackle toward end of production-readiness push)

  1. Audit placeholder tests flagged as succeed-only scaffolding. Decide per file: make real or delete.
    • test_validation_harness.cpp, test_text_input.cpp, test_uia_mapping.cpp,
      test_negative_path.cpp, test_tempo_hook.cpp, test_showcase.cpp,
      test_js_engine.cpp, test_websocket_channel.cpp, test_atk_mapping.cpp,
      test_announce.cpp, test_memory_pressure.cpp, test_transport_hook.cpp,
      test_osc_channel.cpp, test_widget_bridge.cpp, test_audio_system_hotplug.cpp,
      test_network_stream.cpp, test_screenshot.cpp, test_token_diff.cpp.
  2. Priority subsystem hardening — raise coverage on: platform, host, format, runtime, view, osc, dsl (user-specified priority). Each gets a focused sweep: identify the 3-5 highest-blast-radius entry points, write behaviour tests.
  3. core/dsl: decide whether it's live. If yes, add parser + interpreter suite. If dead, delete the subsystem.
  4. Regression-test policy: every new bug-fix PR carries a narrow regression test or an explicit "no test practical" note.
  5. Runtime coverage job: add an LLVM/gcov CI lane at a later phase; don't block current bugs on coverage infra.

Schedule: tackle after production-readiness workstream PRs have drained (per user: "obv towards end").

Metadata

Metadata

Assignees

No one assigned

    Labels

    automationDesktop automation, MCP, plugin hostingdesign-toolDesign tool, design import, tokensdslFAUST, Cmajor, JSFX, DSL toolchainsparity-audit-2026-04-17Issues from the 2026-04-17 parity auditstub-auditFindings from repo-grounded unfinished/stub implementation audituiView system, widgets, layout, themes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions