-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Roborazzi AI-Powered Image Assertion #491
Merged
Merged
Conversation
This file contains 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
takahirom
force-pushed
the
takahirom/roborazzi-ai-prototype/2024-09-21
branch
2 times, most recently
from
October 21, 2024 01:05
58046c3
to
6ef71df
Compare
takahirom
changed the title
Roborazzi AI prototype
Roborazzi AI-Powered Image Verification prototype
Oct 22, 2024
takahirom
force-pushed
the
takahirom/roborazzi-ai-prototype/2024-09-21
branch
from
October 22, 2024 02:44
1ce5650
to
b58c5ff
Compare
TODO:
|
takahirom
changed the title
Roborazzi AI-Powered Image Verification prototype
Roborazzi AI-Powered Image Verification
Oct 25, 2024
takahirom
force-pushed
the
takahirom/roborazzi-ai-prototype/2024-09-21
branch
from
October 28, 2024 11:16
f90a2dc
to
3fdebb6
Compare
takahirom
force-pushed
the
takahirom/roborazzi-ai-prototype/2024-09-21
branch
from
October 31, 2024 01:33
d345482
to
93ffc7b
Compare
takahirom
changed the title
Roborazzi AI-Powered Image Verification
Roborazzi AI-Powered Image Assertion
Nov 3, 2024
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.
Background
Advancements in AI: AI technologies are becoming increasingly sophisticated and affordable.
Manual Screenshot Testing: Traditional methods require manual verification, limiting scalability.
Problem
Scalability Limitations: Manual checks hinder large-scale screenshot testing.
High Maintenance Costs: Human intervention increases effort and costs.
Proposal
Integrate AI for Image Comparison: Use AI to automate screenshot verification in tests.
Enhance Roborazzi: Add AiOptions to enable AI-based image evaluation.
Current code
https://github.com/takahirom/roborazzi/blob/658bb293e7beb163f5004d1f09987f35f0294064/docs/topics/ai_powered_image_assertion.md
Changes for Existing Projects
We won't introduce any new dependencies for existing projects. I think I'll add the
roborazzi-ai
module to manage dependencies like Gemini or others, so you don't have to worry about disrupting existing dependencies.Discussion Points
When We Execute This
The current AI implementation runs only when:
And the test fails only when:
How We Set Prompts
Currently, it is a little difficult to set a prompt because we need to change RoborazziOptions.CompareOptions.AiOptions.prompt.
Things to Do
RoborazziOptions.CompareOptions
. If we create a new function for this, like captureRoboImageWithAI, it will require bigger changes. Alternatively, provide a way to change these options easily for RoborazziOptions.