Commit fcff40c
authored
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` |

|

|
|
[io.github.takahirom.roborazzi:roborazzi-compose](https://redirect.github.com/takahirom/roborazzi)
| `1.71.0` → `1.72.0` |

|

|
|
[io.github.takahirom.roborazzi:roborazzi](https://redirect.github.com/takahirom/roborazzi)
| `1.71.0` → `1.72.0` |

|

|
---
> [!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
([#​909](https://redirect.github.com/takahirom/roborazzi/issues/909),
fixes
[#​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
([#​916](https://redirect.github.com/takahirom/roborazzi/issues/916),
fixes
[#​915](https://redirect.github.com/takahirom/roborazzi/issues/915)).
**Thank you [@​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
[@​takahirom](https://redirect.github.com/takahirom) in
[#​909](https://redirect.github.com/takahirom/roborazzi/pull/909)
- Fix doubled screenshot path for Windows absolute paths by
[@​takahirom](https://redirect.github.com/takahirom) in
[#​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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments