Skip to content

fix(testing): refresh discovered tests at startup - #97

Merged
BartvHelvert merged 1 commit into
masterfrom
fix/test-gutter-children
Nov 6, 2026
Merged

BartvHelvert merged 1 commit into
masterfrom
fix/test-gutter-children

Conversation

@BartvHelvert

Copy link
Copy Markdown
Owner

What this changes

Refresh open files when the test UI subscribes to discovery changes. If discovery finishes before this startup activity registers its listener, the earlier highlighting pass can retain only the suite marker. Use the existing debounced refresh path once at startup as well as for later changes.

The UI probe now publishes child tests only after the suite marker has been drawn, exercising incremental marker delivery. It retains the original test-run, result, output and unsaved-edit assertions.

Fixes #77

How it was tested

  • Controlled WSL/Xvfb reproduction: draw the suite, publish its children, confirm the backend knows all three tests, then start the UI listener. The original code timed out after 90 seconds with only {0=Run probe}. With the initial refresh, the same controlled run passed every assertion.
  • The original CI failure did not retain discovery timing traces; the controlled reproduction establishes a startup ordering gap that produces the same symptom.
  • Three final ordinary WSL/Xvfb regression runs passed, with no failures, errors or skipped tests.
  • Temporary tracing and late-start controls are excluded from this PR. Normal PR CI provides the full-suite and Windows checks; no additional full suite was run locally.

Checklist

  • Nothing is special-cased for one extension.
  • A new feature has a UI test. Existing gutter UI regression strengthened and run.
  • No internal, override-only, obsolete or deprecated platform API.
  • docs/ is updated where behaviour changed, docs/status.md especially. Restores existing gutter behavior; no API or setup changes.
  • Third-party material keeps its notice and is listed in NOTICE.md. No third-party material added.

Discovery can finish before the test UI subscribes. Reconcile open files once at registration so an earlier suite-only highlight is refreshed. Exercise incremental child discovery after the suite marker is drawn.

Refs #77
@BartvHelvert
BartvHelvert merged commit b51b021 into master Nov 6, 2026
6 of 8 checks passed
@BartvHelvert
BartvHelvert deleted the fix/test-gutter-children branch November 6, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test gutter can show only the suite marker and omit its children

1 participant