Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alter the default output directory for comparison images and incorporate outputDirectoryPath into the comparison options #128

Conversation

takahirom
Copy link
Owner

@github-actions
Copy link

github-actions bot commented Jul 22, 2023

Snapshot diff report

File name Image
custom_file_compare.
png

@takahirom takahirom force-pushed the takahirom/change-default-output-directory-for-compare-and-actual-images-and-make-it-customizable/2023-07-22 branch from 546c2ef to dfb5af7 Compare July 23, 2023 06:27
@takahirom takahirom merged commit 71ce4fd into main Jul 23, 2023
4 checks passed
@takahirom takahirom deleted the takahirom/change-default-output-directory-for-compare-and-actual-images-and-make-it-customizable/2023-07-22 branch July 23, 2023 11:03
@blundell
Copy link

blundell commented Aug 15, 2023

👍 I was just reading the discussion in #125 and I was expecting this PR to be able to set 2 different output directories? One for the compare task and a different dir for the record task. Is this not the case? (only see changes in CompareOptions & not RecordOptions)

@blundell
Copy link

Think I've worked it out, the filePath param on the captureRoboImage method is the record file path.
I assumed it'd be in RecordOptions 😅

github-merge-queue bot pushed a commit to slackhq/circuit that referenced this pull request Sep 18, 2023
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[io.github.takahirom.roborazzi](https://togithub.com/takahirom/roborazzi)
| plugin | minor | `1.4.0` -> `1.5.0` |
|
[io.github.takahirom.roborazzi:roborazzi-junit-rule](https://togithub.com/takahirom/roborazzi)
| dependencies | minor | `1.4.0` -> `1.5.0` |
|
[io.github.takahirom.roborazzi:roborazzi-compose](https://togithub.com/takahirom/roborazzi)
| dependencies | minor | `1.4.0` -> `1.5.0` |
|
[io.github.takahirom.roborazzi:roborazzi](https://togithub.com/takahirom/roborazzi)
| dependencies | minor | `1.4.0` -> `1.5.0` |

---

### ⚠ Dependency Lookup Warnings ⚠

Warnings were logged while processing this repo. Please check the
Dependency Dashboard for more information.

---

### Release Notes

<details>
<summary>takahirom/roborazzi (io.github.takahirom.roborazzi)</summary>

###
[`v1.5.0`](https://togithub.com/takahirom/roborazzi/releases/tag/1.5.0)

[Compare
Source](https://togithub.com/takahirom/roborazzi/compare/1.4.0...1.5.0)

##### Changes from 1.4.x

##### Breaking Change ⚠️

When specifying the file path for output, the baseline (golden or
reference) images will be saved at the specified location. However,
images such as \*\_compare.png will now be saved in a different
directory, specifically under build/outputs/roborazzi. This update,
spotted by [@&#8203;simonwalter](https://togithub.com/simonwalter),
helps prevent accidental commits of \*\_compare.png images to GitHub by
users who only wish to save the baseline images. Users have the ability
to revert the changed path by utilizing the outputDirectoryPath setting
in RoborazziOptions' CompareOptions.For more information, check out the
summar[takahirom/roborazzi#125 (comment)

##### Bug Fix  🛠

We have addressed an issue where tasks might unexpectedly be skipped. As
a solution, we have implemented an experimental feature that utilizes
Gradle's output.

##### What's Changed

- Alter the default output directory for comparison images and
incorporate outputDirectoryPath into the comparison options by
[@&#8203;takahirom](https://togithub.com/takahirom) in
[takahirom/roborazzi#128
- Add message in exception if image was not found by
[@&#8203;blackbracken](https://togithub.com/blackbracken) in
[takahirom/roborazzi#129
- Fix unexpected task skip using `doNotCacheIf` by
[@&#8203;takahirom](https://togithub.com/takahirom) in
[takahirom/roborazzi#130
- Extract RoborazziOptions for readability by
[@&#8203;takahirom](https://togithub.com/takahirom) in
[takahirom/roborazzi#132
- Improve report message by
[@&#8203;takahirom](https://togithub.com/takahirom) in
[takahirom/roborazzi#133
- Fix crash when the component size is zero and improve performance by
[@&#8203;takahirom](https://togithub.com/takahirom) in
[takahirom/roborazzi#134
- Fix condition of bitmap crop by
[@&#8203;takahirom](https://togithub.com/takahirom) in
[takahirom/roborazzi#135

##### New Contributors

- [@&#8203;blackbracken](https://togithub.com/blackbracken) made their
first contribution in
[takahirom/roborazzi#129

**Full Changelog**:
takahirom/roborazzi@1.4.0-rc-1...1.5.0-rc-1

</details>

---

### 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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi45Ni4zIiwidXBkYXRlZEluVmVyIjoiMzYuOTYuMyIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants