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.30.1
->1.32.2
1.30.1
->1.32.2
1.30.1
->1.32.2
1.30.1
->1.32.2
1.30.1
->1.32.2
1.30.1
->1.32.2
Release Notes
takahirom/roborazzi (io.github.takahirom.roborazzi)
v1.32.2
Compare Source
WebP Image Comparison Improvements
Improved handling for transparent pixels in WebP image comparisons. Previously, transparent pixels in WebP images were sometimes returned with unexpected color values (e.g., r = 1, g = 0, b = 0, a = 0), which caused inconsistencies in image comparisons. The comparison logic now correctly handles transparent pixels by interpreting them as fully transparent black (r = 0, g = 0, b = 0, a = 0) to ensure consistent results across comparisons.
Special thanks to @ArcaNO93 for identifying and reporting this issue!
What's Changed
Full Changelog: takahirom/roborazzi@1.32.1...1.32.2
v1.32.1
Compare Source
Experimental WebP support and other image formats
Now, you can set
roborazzi.record.image.extension
towebp
in yourgradle.properties
file to generate WebP images.roborazzi.record.image.extension=webp
To enable WebP support, add
testImplementation("io.github.darkxanter:webp-imageio:0.3.3")
to yourbuild.gradle.kts
file.WebP is a lossy image format by default, which can make managing image differences challenging. To address this, we provide a lossless WebP image feature.
WebP lossless images are reported to be 26% smaller in size compared to PNGs.
You can also use other image formats by implementing your own
AwtImageWriter
andAwtImageLoader
.Thank you, @ArcaNO93, for providing this suggestion and the code review!
Adjustments to AI-Powered Image Assertion
In version 1.30.0, we introduced Roborazzi AI-Powered Image Assertion.
We made some adjustments to the AI-Powered Image Assertion
InternalRoborazziApi
despite being documented in the README. We have now changed it to ExperimentalRoborazzi API.Changes from 1.32.0
API Key Masking in Logs for OpenAiAiAssertionModel
For users enabling logging through
OpenAiAiAssertionModel.loggingEnabled
, API keys in log outputs are now masked to improve security. Previously, API keys could appear in logs, which could unintentionally expose them, especially in test reports. With this update, sensitive data is automatically masked, helping users avoid accidental exposure.What's Changed
Full Changelog: takahirom/roborazzi@1.31.0...1.32.1
v1.32.0
Compare Source
Please refer to the 1.32.1 release at https://github.com/takahirom/roborazzi/releases/tag/1.32.1
v1.31.0
Compare Source
Added Experimental Support for Cleaning Up Old Screenshots
This release introduces the
roborazzi.cleanupOldScreenshots=true
option ingradle.properties
, allowing users to automatically remove outdated screenshots. By default, this is set tofalse
to prevent accidental deletions when running filtered tests. Please note that enabling this option may result in unintended deletions when running filtered tests. You can use-Proborazzi.cleanupOldScreenshots=true
for CI configurations to clean up screenshots only in CI runs without affecting local settings.This cleanup implementation may affect the cache mechanism. We have some integration tests in place, but if you notice any issues, please let us know.
Thank you, @JackEblan, for suggesting the cleanup feature!
Improve AI Assertion Error Message
In the previous release, we introduced Roborazzi AI-Powered Image Assertion.
When an AI assertion fails, it’s important to review the screenshots to understand what went wrong with the images. Therefore, I enhanced the error message to include the file paths of the images.
What's Changed
Full Changelog: takahirom/roborazzi@1.30.1...1.31.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, 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.