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

Prepare a sample using Showkase. #19

Open
takahirom opened this issue Mar 31, 2023 · 5 comments
Open

Prepare a sample using Showkase. #19

takahirom opened this issue Mar 31, 2023 · 5 comments

Comments

@takahirom
Copy link
Owner

I tried it and Roborazzi apparently works properly with Showkase.

@jmartinesp
Copy link

I tried replacing Paparazzi with Roborazzi in our codebase and use the metadata generated by Showkase, but I couldn't find a way to automatically run a test for each preview item since the compose test rules only allows calls to setContent once per test case and we can't use TestParameterInjectors to create those automatically.

Since you were investigating how to combine then, I wanted to ask if there is any other way ro use Roborazzi with Showkase than manually creating a test for each preview item?

@takahirom
Copy link
Owner Author

takahirom commented May 29, 2023

I believe that AndroidJUnit4 is not compatible with TestParameterInjectors. Therefore, when I encountered this issue, I probably decided to remove it and use a standard parameterized test instead. Though, I forgot what I did.

@jmartinesp
Copy link

Actually, using parameterized tests with @RunWith(ParameterizedRobolectricTestRunner::class) did the trick. Thanks!

@morux2
Copy link

morux2 commented Sep 25, 2023

Hello @takahirom !

I tried showkase with roborazzi in my sample project. Please feel free to use it as a reference.
morux2/RoborazziPractice#3

@takahirom
Copy link
Owner Author

@morux2 Thanks!

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

3 participants