Files
swiftcontrol/dart_test.yaml
Jonas Acker 070db6f7ba test(onboarding): capture the wizard as a deterministic 30 fps frame sequence
Films the MyWhoosh path (app → where → controller) through the real
OnboardingPage with a connected Zwift Ride, writing every frame to
build/video_frames/<scene>/NNNNNN.png at 760×1648 plus taps.json with the
pointer position of each tap. A second test captures twice and requires the
frames to be byte-identical.

Determinism needs the fake-clock binding: under the integration binding
pump(duration) waits real time and frames are stamped by the vsync clock.
The snapshot harness gains ensureSnapshotAppState() for that. Fonts, logos
and the contour SVG are decoded before the first frame is recorded.

screenshotMode stays on for the machine state it pins, and a test-only
flag lets the onboarding reveal animate under it, since that reveal is
the step transition.

Tagged `video`, skipped by default:
  flutter test --run-skipped --tags video test/onboarding_video_capture_test.dart

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 00:08:53 +02:00

21 lines
992 B
YAML

# Test runner config, read by `flutter test`.
#
# The screenshot/snapshot suites don't assert anything — they render widgets to
# PNGs for the app stores, the blog and the docs. They are by far the slowest
# files in the suite (fonts, real themes, one render per locale) and their
# goldens flap on unrelated machines, so a normal `flutter test` skips them.
#
# To regenerate the images:
# flutter test --run-skipped --tags screenshots
# flutter test --run-skipped --update-goldens test/screenshot_test.dart
#
# The `video` suite films the onboarding wizard as a 30 fps PNG sequence for
# the video compositor (build/video_frames/<scene>/). Same reasoning — output
# only, and slow:
# flutter test --run-skipped --tags video test/onboarding_video_capture_test.dart
tags:
screenshots:
skip: "Image generation only — run with `flutter test --run-skipped --tags screenshots`"
video:
skip: "Video frame capture only — run with `flutter test --run-skipped --tags video`"