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.
This PR contains the following updates:
1.21.0
->1.22.2
1.21.0
->1.22.2
1.21.0
->1.22.2
1.21.0
->1.22.2
Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
takahirom/roborazzi (io.github.takahirom.roborazzi)
v1.22.2
Compare Source
Notice
RobolectricPreviewTest and roborazzi.generateComposePreviewRobolectricTests.customTestQualifiedClassName are used for customizing Experimental Compose Preview Support. However, the name and class signature of RobolectricPreviewTest will be changed in a future release(not in 1.22.2) to support the Compose Multiplatform Preview Annotation.
Bug fixes
We didn't have integration tests for Experimental Compose Preview Support, so we added them. In KMP projects, we used to check only
testImplementation
(androidUnitTest.dependencies.implementation is used for KMP Android Unit tests), and the verification for generateComposePreviewRobolectricTests{} was failing. Therefore, we have added integration tests and fixed the behavior for KMP projects.What's Changed
Full Changelog: takahirom/roborazzi@1.22.1...1.22.2
v1.22.1
Compare Source
Bug fixes
We've released Experimental Compose Preview Support in 1.22.0. In this release, we are going to include a bug fix for it.
The strategy of
generateComposePreviewRobolectricTests{}
is not to modify settings automatically, but to verify that the user settings are correct. This allows our settings to be the single source of truth. However, the assertion had some bugs, so I fixed them.What's Changed
Full Changelog: takahirom/roborazzi@1.22.0...1.22.1
v1.22.0
Compare Source
Experimental Compose Preview Support 🚀
We're excited to announce the experimental release of Compose Preview Support for Roborazzi, a powerful new feature that streamlines the process of generating screenshot tests for Jetpack Compose Previews.
Key Features
How to Use
To enable Compose Preview screenshot test generation, add the following to your
build.gradle.kts
:After configuration, run the
recordRoborazziDebug
task to generate screenshots using the newly created tests.Customization Options
Customize your setup with options like:
Manual Integration
For manual integration, add the following dependency:
testImplementation("io.github.takahirom.roborazzi:roborazzi-compose-preview-scanner-support:[version]")
Then use the
ComposablePreview<AndroidPreviewInfo>.captureRoboImage()
function in your tests. Note thatComposablePreview
is a class provided by the ComposablePreviewScanner library, which Roborazzi utilizes for this feature.This approach allows for more fine-grained control over the screenshot capture process for Compose Previews.
Acknowledgements
Special thanks to @yschimke for the initial proposal, and to @sergio-sastre and @yschimke for their valuable design and code reviews.
For more detailed information on setup and usage, please visit our documentation.
Enhanced Accessibility Text Capture
Thanks to @lukas-mercari 's contribution, we've improved accessibility text dumping for merged Compose elements. Both content descriptions and text are now captured, providing more comprehensive accessibility information in tests.
What's Changed
Full Changelog: takahirom/roborazzi@1.21.0...1.22.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by Renovate Bot.