Repository navigation
feat: add showfase_test package for golden testing (VRT) - #2
Merged
Merged
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
… diffs Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
showfasePreviews())を golden テストとして実行する新パッケージshowfase_testを追加testWidgetsを登録し、matchesGoldenFileで描画結果を検証する Visual Regression Test を実現Related issue
N/A
Affected packages
showfase(runtime)showfase_generator(build_runner)showfase_annotationshowfase_test(golden testing)packages/showfase/example.github/, README)Breaking change
How was this tested?
melos run format:check/analyze/test/test:flutter/snapshot/build:verifyすべて成功(macOS ローカル)showfase_testの self-test 29 件(unit / リサイズ挙動 / 異常系 / ジオメトリ golden 比較)+ example のスナップショット撮影 13 件がすべて成功flutter test --plain-name 'iPhone15 Buttons Simple button'で単一プレビューのみ実行できることを確認確認事項:
Take snapshotsステップが成功し、snapshotsartifact に 13 プレビューの PNG が含まれることChecklist
dart format .has been run.dart analyze(ormelos run analyze) passes locally.dart test/flutter testpasses locally in every affected package.///doc comments.dart run build_runner buildinpackages/showfase/exampleand committed the updatedshowfase.g.dartalongside the source change.CHANGELOG.mdin every affected package updated under an## Unreleasedheading.