Skip to content

Commit fcff40c

Browse files
Update roborazzi to v1.72.0 (#2851)
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [io.github.takahirom.roborazzi:roborazzi-junit-rule](https://redirect.github.com/takahirom/roborazzi) | `1.71.0` → `1.72.0` | ![age](https://developer.mend.io/api/mc/badges/age/maven/io.github.takahirom.roborazzi:roborazzi-junit-rule/1.72.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/io.github.takahirom.roborazzi:roborazzi-junit-rule/1.71.0/1.72.0?slim=true) | | [io.github.takahirom.roborazzi:roborazzi-compose](https://redirect.github.com/takahirom/roborazzi) | `1.71.0` → `1.72.0` | ![age](https://developer.mend.io/api/mc/badges/age/maven/io.github.takahirom.roborazzi:roborazzi-compose/1.72.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/io.github.takahirom.roborazzi:roborazzi-compose/1.71.0/1.72.0?slim=true) | | [io.github.takahirom.roborazzi:roborazzi](https://redirect.github.com/takahirom/roborazzi) | `1.71.0` → `1.72.0` | ![age](https://developer.mend.io/api/mc/badges/age/maven/io.github.takahirom.roborazzi:roborazzi/1.72.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/io.github.takahirom.roborazzi:roborazzi/1.71.0/1.72.0?slim=true) | --- > [!WARNING] > Some dependencies could not be looked up. Check the [Dependency Dashboard](../issues/1239) for more information. --- ### Release Notes <details> <summary>takahirom/roborazzi (io.github.takahirom.roborazzi:roborazzi-junit-rule)</summary> ### [`v1.72.0`](https://redirect.github.com/takahirom/roborazzi/releases/tag/1.72.0) [Compare Source](https://redirect.github.com/takahirom/roborazzi/compare/1.71.0...1.72.0) ##### New: Subdirectory naming strategies for screenshot paths Two new `roborazzi.record.namingStrategy` options organize screenshots into directories instead of one flat folder of fully-qualified file names ([#&#8203;909](https://redirect.github.com/takahirom/roborazzi/issues/909), fixes [#&#8203;801](https://redirect.github.com/takahirom/roborazzi/issues/801)): ```properties # com.example.myapp.ui/SomeClass.method.png — the package as a single directory level roborazzi.record.namingStrategy=testPackageDirAndClassAndMethod # com/example/myapp/ui/SomeClass.method.png — the package as nested directories roborazzi.record.namingStrategy=testNestedPackageDirAndClassAndMethod ``` **Why:** with `generateComposePreviewRobolectricTests`, projects with hundreds of previews end up with a single flat directory that is hard to navigate. Both directory styles requested in the issue discussion are supported. `_compare` / `_actual` images mirror the golden's subdirectory. This matters because the package no longer appears in the leaf file name with the `*Dir` strategies — without mirroring, two classes with the same simple name in different packages would collapse onto a single flat comparison image. The mirroring also works when the compare output directory is a separate directory, and when the output directory is overridden via `RoborazziRule`. The three existing strategies produce byte-for-byte identical paths as before, so nothing changes unless you opt in. ##### Fixes - **Wrong screenshot path on Windows.** With `roborazzi.record.filePathStrategy=relativePathFromRoborazziContextOutputDirectory`, the output directory was prepended twice on Windows (`D:\...\screenshots\D:\...\screenshots\Test.png`), because the absolute-path guard only recognized Unix-style paths — `D:\...` fell through and was joined to the output directory again. Windows drive-absolute and UNC paths are now detected as absolute; on Unix, `:` and `\` remain valid file name characters, so nothing changes there ([#&#8203;916](https://redirect.github.com/takahirom/roborazzi/issues/916), fixes [#&#8203;915](https://redirect.github.com/takahirom/roborazzi/issues/915)). **Thank you [@&#8203;MGaetan89](https://redirect.github.com/MGaetan89) for the report with a minimal reproducer while re-enabling the Roborazzi integration tests on Robolectric!** ##### What's Changed - Add subdirectory-based naming strategies for screenshot paths by [@&#8203;takahirom](https://redirect.github.com/takahirom) in [#&#8203;909](https://redirect.github.com/takahirom/roborazzi/pull/909) - Fix doubled screenshot path for Windows absolute paths by [@&#8203;takahirom](https://redirect.github.com/takahirom) in [#&#8203;916](https://redirect.github.com/takahirom/roborazzi/pull/916) **Full Changelog**: <takahirom/roborazzi@1.71.0...1.72.0> </details> --- ### Configuration 📅 **Schedule**: (UTC) - 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://redirect.github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yODguMCIsInVwZGF0ZWRJblZlciI6IjQzLjI4OC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
1 parent 09be036 commit fcff40c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ okio = "3.18.1"
4242
picnic = "0.7.0"
4343
r8 = "9.1.31"
4444
robolectric = "4.16.1"
45-
roborazzi = "1.71.0"
45+
roborazzi = "1.72.0"
4646
sqldelight = "2.3.2"
4747
telephoto = "0.19.0"
4848
testParameterInjector = "1.22"

0 commit comments

Comments
 (0)