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

Multi-module project - @ShowkaseRoot per module causes tests to have @Previews from dependent modules #379

Open
ss0930 opened this issue Apr 15, 2024 · 0 comments

Comments

@ss0930
Copy link

ss0930 commented Apr 15, 2024

I am using Showkase + Paparazzi artifact (#294) to set up snapshot testing in a multi-module project. I am running into an issue where a module will generate snapshot tests for @Previews from modules it depends on.

Module A

  • contains 5 composable previews

Module B

  • contains 3 composable previews
  • depends on Module A

When executing recordPaparazzi, Module A will execute tests for 5 previews, however, Module B executes tests for 8 previews (3 from Module B, 5 from Module A). This results in redundant snapshots being generated. This is mentioned in this comment #299 (comment) on an existing issue as well.

Is there a workaround for this that works with showkase-screenshot-testing-paparazzi artifact?

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

1 participant