Skip to content

Test coverage for TuiRuntime error paths #141

Description

@rorygraves

Background

TuiRuntime has several error paths (command coalescing overflow, unhandled exception → TermFlowErrorCmd → error overlay, Sub failure, shutdown mid-frame) that are structurally exercised but not explicitly tested.

Regressions here become user-facing terminal corruption, missed shutdowns, or silently swallowed errors.

Goal

Targeted tests for each runtime error path.

Scope

  1. Test: unhandled exception in update surfaces via error overlay.
  2. Test: Sub thrown exception doesn't kill the runtime.
  3. Test: shutdown flushes pending Cmds gracefully.
  4. Test: CmdBus backpressure / overflow under burst load.
  5. Test: FCmd failing Future surfaces as TermFlowErrorCmd.

Acceptance

  • Each listed path has a dedicated test.
  • Coverage on TuiRuntime improves measurably.

Part of Cross-cutting — Semantic model & test debt.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions