Skip to content

Add golden render regression suite + resolve #123 docs (v1.0.12)#141

Merged
gazreese merged 1 commit into
mainfrom
test/golden-render-suite
Jul 10, 2026
Merged

Add golden render regression suite + resolve #123 docs (v1.0.12)#141
gazreese merged 1 commit into
mainfrom
test/golden-render-suite

Conversation

@gazreese

Copy link
Copy Markdown
Member

Makes the golden-rendering effort real (committed regression tests) and records that the 1.0.11 README overhaul resolved #123.

Golden render tests

  • New test/render_golden_test.dart renders representative Markdown (formatting/emphasis/blockquotes/lists, tables/task lists, code) and compares against committed reference images under test/assets/golden/render/.
  • Loads real Roboto/MaterialIcons fonts from the Flutter SDK (via FLUTTER_ROOT) so goldens show real glyphs, not the Ahem test font.
  • Registered in test/all.dart.
  • CI-safe: like the existing image goldens they're platform-specific, and are skipped on CI (unpinned stable channel) to avoid flaky pixel-exact diffs. They run in the local flutter test suite. Verified: passes locally, skips under GITHUB_ACTIONS=true. Pin the CI Flutter version to also verify them in CI.

Docs / issues

Release

  • Version bumped to 1.0.12; CHANGELOG entry added. Test/docs only — no library or public API changes.

flutter analyze clean; aggregated flutter test test/all.dart green (golden tests run locally).

🤖 Generated with Claude Code

https://claude.ai/code/session_014oVQtXCPb3bSLnL2eDwGrh

Add committed golden tests that render representative Markdown documents
(formatting/emphasis/blockquotes/lists, tables/task lists, and code blocks)
and compare them against reference images, catching unintended changes to how
content is laid out and styled.

- Fonts (Roboto, MaterialIcons) are loaded from the Flutter SDK via FLUTTER_ROOT
  so the goldens show real glyphs rather than the Ahem test font.
- Registered in test/all.dart so the aggregated suite runs them.
- Like the existing image goldens they are platform-specific; they run in the
  local `flutter test` suite and are skipped on CI (whose Flutter `stable`
  channel is unpinned) to avoid flaky pixel-exact diffs when the toolchain drifts.

Also notes in the CHANGELOG that the 1.0.11 README overhaul documented the
previously undocumented onTapLink/styleSheet APIs, resolving #123.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014oVQtXCPb3bSLnL2eDwGrh
@gazreese
gazreese merged commit 75d08fd into main Jul 10, 2026
2 checks passed
@gazreese
gazreese deleted the test/golden-render-suite branch July 10, 2026 12:39
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.

[Documentation]: Add samples, examples for onTapLink, styleSheets

1 participant