feat(snapshots): Add generateTests flag to disable preview scanning#1146
Merged
runningcode merged 1 commit intomainfrom Apr 15, 2026
Merged
feat(snapshots): Add generateTests flag to disable preview scanning#1146runningcode merged 1 commit intomainfrom
runningcode merged 1 commit intomainfrom
Conversation
…EME-1039) Customers who already have Paparazzi snapshot tests and just want to upload them can now set `generateTests = false` to prevent the plugin from auto-discovering Compose previews and generating test code. The upload task remains wired to recordPaparazzi regardless of this setting. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. This PR will not appear in the changelog. 🤖 This preview updates automatically when you update the PR. |
Contributor
|
romtsn
approved these changes
Apr 15, 2026
This file contains hidden or 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
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.
Use the hidewhitespace diff to review: https://github.com/getsentry/sentry-android-gradle-plugin/pull/1146/changes?w=1
Summary
generateTestsproperty (defaulttrue) toSnapshotsExtensionthat controls whether the plugin auto-generates Paparazzi snapshot tests from Compose@Previewcomposablesfalse, skips theComposablePreviewScannerdependency, test generation task, and source directory wiring — but keeps the upload task wired torecordPaparazzisentry { snapshots { enabled = true generateTests = false } }Fixes EME-1039
#skip-changelog
🤖 Generated with Claude Code