Files
swiftcontrol/dart_test.yaml
Jonas Bark 0808a49f27 test: the screenshot suites are generators, not tests — skip them by default
test/screenshot_test.dart and the five *_snapshot_test.dart files render PNGs
for the app stores, the blog and the docs. Only screenshot_test.dart asserts
anything, and what it asserts is a golden that flaps between machines; the rest
have no expectations at all. They are also the slowest files in the suite —
real fonts, real themes, one render per locale.

Tag them `screenshots` and skip that tag from dart_test.yaml, which flutter test
does read. The skip lands at suite level, so main() never runs and the snapshot
harness bootstrap is never paid. Regenerate with --run-skipped.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-11 19:51:22 +02:00

14 lines
630 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
tags:
screenshots:
skip: "Image generation only — run with `flutter test --run-skipped --tags screenshots`"