Add @RoboComposePreviewIgnore annotation#785
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughAdds a new Changes
Sequence DiagramsequenceDiagram
participant Gradle as GradlePlugin
participant Scanner as PreviewScanner
participant Inspector as AnnotationInspector
participant Filter as PreviewFilter
participant Generator as TestGenerator
Gradle->>Scanner: trigger scan for `@Preview` composables
Scanner->>Inspector: inspect each preview's annotations
Inspector-->>Scanner: mark previews annotated with RoboComposePreviewIgnore
Scanner->>Filter: exclude annotated previews
Filter->>Generator: supply filtered previews
Generator->>Generator: generate screenshot tests for remaining previews
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What
Add
@RoboComposePreviewIgnoreannotation to exclude specific previews from screenshot tests.Why
Closes #783. Users may want to exclude certain
@Previewcomposables from generated screenshot tests without creating a custom tester class.Usage
Summary by CodeRabbit
New Features
Tests
Chores