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:
8.8
->8.9
1.1.5
->1.2.1
3.5.1
->3.6.1
2.8.2
->2.8.3
2.8.2
->2.8.3
1.8.0
->1.8.1
2.8.2
->2.8.3
8.4.2
->8.5.1
2.8.2
->2.8.3
31.4.2
->31.5.1
1.20.0
->1.23.0
1.20.0
->1.23.0
1.20.0
->1.23.0
1.20.0
->1.23.0
4.12.2
->4.13
1.7.0-beta03
->1.7.0-beta05
1.7.0-beta03
->1.7.0-beta05
1.7.0-beta03
->1.7.0-beta05
0.5.27
->0.5.28
0.5.27
->0.5.28
0.5.27
->0.5.28
0.5.27
->0.5.28
0.5.27
->0.5.28
2.8.2
->2.8.3
2.8.2
->2.8.3
1.7.0-beta03
->1.7.0-beta05
8.4.2
->8.5.1
Release Notes
gradle/gradle (gradle)
v8.9
Compare Source
takahirom/roborazzi (io.github.takahirom.roborazzi)
v1.23.0
Compare Source
Breaking Changes to
roborazzi.generateComposePreviewRobolectricTests.customTestQualifiedClassName
Gradle ExtensionWe released
roborazzi.generateComposePreviewRobolectricTests.customTestQualifiedClassName
in the previous release1.22.0
, allowing customization of preview test behavior. We have since discovered that the interface of RobolectricPreviewTest cannot adapt to Compose Multiplatform Preview because RobolectricPreviewTest usesAndroidPreviewInfo
from ComposablePreviewScanner, which represents Android Compose Preview. To address this, we have added a generic parameter to handle the annotation and renamed RobolectricPreviewTest to ComposePreviewTester.The Gradle extension property has been renamed:
roborazzi.generateComposePreviewRobolectricTests.customTestQualifiedClassName
->roborazzi.generateComposePreviewRobolectricTests.testerQualifiedClassName
Old interface:
New interface:
What's Changed
Full Changelog: takahirom/roborazzi@1.22.2...1.23.0
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
v1.21.0
Compare Source
Android Studio, IntelliJ IDEA Plugin is coming
The Roborazzi Plugin has been released after the previous release. Please check it out. The Roborazzi plugin enhances your development workflow by automatically displaying screenshots related to Roborazzi's screenshot tests within IntelliJ IDEA. Easily view and verify visual outputs directly in your IDE, streamlining your testing and development process.
screencast.2024-06-07.10-08-00.mp4
https://plugins.jetbrains.com/plugin/24561-roborazzi
Now, test report assets are written in the same directory as the report HTML.
We are using Materialize for the HTML report generated in build/reports/roborazzi. This causes a Content Security Policy (CSP) problem when using iframes. As a result, we can't view the report correctly in some projects. To resolve this, we now save the assets like CSS and JS in the same directory as the report HTML. Thank you, @eyedol, for tackling this difficult problem. Thank you, @realdadfish, for reporting this!
Bug fix
In the Windows environment, the image path in the report file is not written correctly. I fixed the path separator to resolve this issue. Thank you for reporting this, @ben-gooding-hub.
What's Changed
a5ac7e5
by @renovate in https://github.com/takahirom/roborazzi/pull/384692973e
by @renovate in https://github.com/takahirom/roborazzi/pull/406Full Changelog: takahirom/roborazzi@1.20.0...1.21.0
google/horologist (com.google.android.horologist:horologist-roboscreenshots)
v0.5.28
: 0.5.28What's Changed
Full Changelog: google/horologist@v0.5.27...v0.5.28
Configuration
📅 Schedule: Branch creation - "before 4am" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.