Repository navigation
feat: diff and doctor from Dart - #47
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Merged
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.
A Dart tool that shoots with
shotstill had to startshutter diffand read its YAML to compare runs, and had no way to learn whatshutter doctorfinds:shotchecks neither the Flutter version nor the font cache.How it works
diff(projectDir, before, after, {images, composite})compares two runs asshutter diffdoes. Each run is named the same way: a directory (relative toprojectDir, or absolute) such asShotRun.dir, a run id,latest, orlatest~N.DiffComposite(direction:, title:)asks for the sheets.ShotDiff: both run directories, what each run was shot with (ShotSetup: shell, actions, capture, keyboard, network images, semantics, platform), the directory the images went into, and per shot id aShotDiffEntrywith itsDiffStatus, the shot, the diff ratio, the earlier size, and the absolute paths of its before, after, diff, and composite images.ShutterException. A title that could not be drawn, or does not fit one line, is a warning inShotDiff.warnings;shutter diffprints it to stderr as before, now without the flag name (The title does not fit one line on the 38px sheets; ...).doctor(projectDir, {shell})returns the checks ofshutter doctorasDoctorChecks, each with itsCheckLevel(ok,warn,fail), what was found, and what to do about it.shutter diffanddiffshare one comparison (lib/src/api/compare.dart), andshutter doctoranddoctorone set of checks (lib/src/api/doctor.dart); the CLI only prints them.shot's do.shutter diffbehaves as before.Docs
diffanddoctor.🤖 Generated with Claude Code