Skip to content
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

Updates dropshots to always write reference image. #64

Merged
merged 29 commits into from
Nov 4, 2024

Conversation

rharter
Copy link
Collaborator

@rharter rharter commented Oct 23, 2024

This updates the behavior of the plugin to remove the need for the dropshots.record property, which broke configuration caching. With that being deprecated, the new way to record new reference screenshots is by using the recordDebugScreenshots gradle task.

Since switching to a task means we won't be compiling a new APK for the test, the updated behavior is to use a marker file written to the emulator to disable assertion failures when recording new screenshots.

@rharter rharter self-assigned this Oct 23, 2024
@sebastienrouif
Copy link
Contributor

sebastienrouif commented Nov 1, 2024

when the assertion is done, could we record the screenshot simultaneously? It would prevent us from re-running the test if we agree with the changes

@rharter
Copy link
Collaborator Author

rharter commented Nov 1, 2024

when the assertion is done, could we record the screenshot simultaneously? It would prevent us from re-running the test if we agree with the changes

That's what I'm working on now with this change. Sorry for the thrash in this PR, but validating the GHA integration is hard to do without a PR.

@rharter rharter merged commit bd152b0 into main Nov 4, 2024
1 check passed
@rharter rharter deleted the rharter/diff-and-original branch November 4, 2024 21:02
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