Skip to content

test: implement AI-backed golden screenshot fallback - #1685

Merged
dkhawk merged 1 commit into
mainfrom
feature/ai-golden-screenshots
Aug 5, 2026
Merged

test: implement AI-backed golden screenshot fallback#1685
dkhawk merged 1 commit into
mainfrom
feature/ai-golden-screenshots

Conversation

@kikoso

@kikoso kikoso commented May 5, 2026

Copy link
Copy Markdown
Collaborator

Implements proposal for optimizing AI-based visual testing.

  • Adds a fast, local pixel-based golden screenshot comparison.
  • Falls back to the Gemini Vision API only when the goldens don't match or are missing.
  • Automatically saves/updates the new golden upon Gemini approval, avoiding the need to manually update them but logging a warning so developers can review the new baseline.
  • Refactored ClusteringVisualTest to use this new approach.

@googlemaps-bot

googlemaps-bot commented May 5, 2026

Copy link
Copy Markdown
Contributor

Code Coverage

Overall Project 42.99% 🍏

There is no coverage information present for the Files changed

Base automatically changed from feat/rewrite-android-maps-utils to main July 15, 2026 16:38
@dkhawk
dkhawk requested a review from a team as a code owner July 15, 2026 16:38
- Added pixel-based golden screenshot comparison to `BaseVisualTest`.
- Introduced fallback to Gemini Vision API when goldens don't match or are missing.
- Automatically saves new goldens upon Gemini approval.
- Refactored `ClusteringVisualTest` to use the new verification method.
@dkhawk
dkhawk force-pushed the feature/ai-golden-screenshots branch from 768cd4e to 423e60c Compare August 5, 2026 20:09
@dkhawk

dkhawk commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Rebased onto main and resolved merge conflicts in ClusteringVisualTest.kt. Ready for review!

@dkhawk
dkhawk merged commit 7a8718d into main Aug 5, 2026
12 checks passed
@dkhawk
dkhawk deleted the feature/ai-golden-screenshots branch August 5, 2026 22:22
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.

3 participants