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

Support for Compose Preview Screenshot Testing from Google #387

Open
davidvavra opened this issue May 29, 2024 · 2 comments
Open

Support for Compose Preview Screenshot Testing from Google #387

davidvavra opened this issue May 29, 2024 · 2 comments

Comments

@davidvavra
Copy link

Hi there,
Google announced official support for screenshot testing on I/O:

https://developer.android.com/studio/preview/compose-screenshot-testing

It looks great, but it doesn't support automatic collection of all previews - you need to explicitly put them into a test class. So Showcase would be helpful. Any plans to create a sample, similar to Paparazzi and Shot samples?

@vinaygaba
Copy link
Collaborator

Yes, would be a great way to overcome the current limitations of manually adding the previews.

@davidvavra
Copy link
Author

Hi I had a chat with Jose Alcerreca on I/O Connect event, he is a Googler responsible for the tool. He said that there is no API like Paparazzi has for taking screenshots. The possible way would be to generate code for the previews in screenshotTest source set. Can you guide me a bit how could I do that with Showkase? I might have time to do it then.

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

No branches or pull requests

2 participants