Skip to content

test(inspector): no coverage for RunsRootWatcher poll / idle-on-finished / warming-up state machine #27

Description

@jack-champagne

Surfaced in review of #23.

The SinkDedup primitive is now unit-tested, but RunsRootWatcher's new state machine has zero automated coverage and is the most intricate code in the β release — validated only by manual runs:

  • the 700ms tick() poll backstop (catches frames/FINISHED that fs.watch/FSEvents drops),
  • the idle-on-finished baseline at start() (a finished run at launch sets activeRunDir without a sink so it isn't re-rendered),
  • the warming-up → first-frame transition.

Fix: an integration test that appends iter_*.png + AMICODE_ITER lines to a temp run dir over time and asserts the sink/inspector calls — including a finished run at launch staying idle, warming → first frame, and the poll delivering frames fs.watch missed.

Ref: #23.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions