-
Notifications
You must be signed in to change notification settings - Fork 39
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
Add contextdata tabs to HTML report #260
Merged
takahirom
merged 1 commit into
main
from
takahirom/add-contextdata-tabs-for-html-report/2024-02-13
Feb 17, 2024
Merged
Add contextdata tabs to HTML report #260
takahirom
merged 1 commit into
main
from
takahirom/add-contextdata-tabs-for-html-report/2024-02-13
Feb 17, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Owner
takahirom
commented
Feb 13, 2024
•
edited
Loading
edited
![image](https://private-user-images.githubusercontent.com/1386930/304274832-16341681-ab11-4f1c-b231-0c5a26e1a0e2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NDEzNDMsIm5iZiI6MTczOTY0MTA0MywicGF0aCI6Ii8xMzg2OTMwLzMwNDI3NDgzMi0xNjM0MTY4MS1hYjExLTRmMWMtYjIzMS0wYzVhMjZlMWEwZTIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTVUMTczNzIzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MGNhMjQ5MzM4ZTA2NWQ4MTNjMjdlZGExZmQ5ZTNiY2JhMTM3Y2UzODY4Mjg3Mjk0N2EzMWZjZWM4ZmY2ZDFkMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.Kx9rb1CXulq9kgF0TVKRqqNNeWIBDqdO2A1GrLCcHI0)
Snapshot diff report
|
github-merge-queue bot
referenced
this pull request
in slackhq/circuit
Feb 18, 2024
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [io.github.takahirom.roborazzi](https://github.com/takahirom/roborazzi) | plugin | minor | `1.9.0` -> `1.10.0` | | [io.github.takahirom.roborazzi:roborazzi-junit-rule](https://github.com/takahirom/roborazzi) | dependencies | minor | `1.9.0` -> `1.10.0` | | [io.github.takahirom.roborazzi:roborazzi-compose](https://github.com/takahirom/roborazzi) | dependencies | minor | `1.9.0` -> `1.10.0` | | [io.github.takahirom.roborazzi:roborazzi](https://github.com/takahirom/roborazzi) | dependencies | minor | `1.9.0` -> `1.10.0` | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>takahirom/roborazzi (io.github.takahirom.roborazzi)</summary> ### [`v1.10.0`](https://github.com/takahirom/roborazzi/releases/tag/1.10.0) [Compare Source](https://github.com/takahirom/roborazzi/compare/1.9.0...1.10.0) ##### New experimental feature ##### Custom context data for images and reports Custom context data enables the addition of information to images and reports in Roborazzi's tests, which I believe is very important. For example, it can include the test class name of a screenshot or whether it is in dark mode. You can now add custom context data using RoborazziOptions, and Roborazzi will add the test class name metadata if you use RoborazziRule. If you have any opinions about this feature, please let me know at [https://github.com/takahirom/roborazzi/issues/257](https://github.com/takahirom/roborazzi/issues/257). Furthermore, this opens up possibilities with AI. Given that AI now possesses multimodal capabilities, it has become feasible for AI to process images. This feature was made possible thanks to [@​sanao1006](https://github.com/sanao1006) 's contribution of migrating from org.json to gson. ```kotlin onView(ViewMatchers.isRoot()) .captureRoboImage( roborazziOptions = RoborazziOptions( contextData = mapOf( "context_data_key" to "context_data_value" ) ) ) } ``` <img width="1335" alt="image" src="https://github.com/takahirom/roborazzi/assets/1386930/16341681-ab11-4f1c-b231-0c5a26e1a0e2"> ##### Important bug fix Gradle attempts to load the test cache whenever possible, but there was an issue where Roborazzi couldn't restore images from the cache. This release includes a fix for this problem. Thank you, [@​francescocervone](https://github.com/francescocervone), for reporting this issue. ##### What's Changed - \[CI]Escape branch name by [@​takahirom](https://github.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/253](https://github.com/takahirom/roborazzi/pull/253) - refactor: migrating from the `org.json` Library to `Gson` by [@​sanao1006](https://github.com/sanao1006) in [https://github.com/takahirom/roborazzi/pull/248](https://github.com/takahirom/roborazzi/pull/248) - doc: Add build.gradle.kts examples by [@​sanao1006](https://github.com/sanao1006) in [https://github.com/takahirom/roborazzi/pull/256](https://github.com/takahirom/roborazzi/pull/256) - Enable adding metadata to image by [@​takahirom](https://github.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/259](https://github.com/takahirom/roborazzi/pull/259) - Add contextdata tabs to HTML report by [@​takahirom](https://github.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/260](https://github.com/takahirom/roborazzi/pull/260) - Fix Roborazzi output cache by [@​takahirom](https://github.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/262](https://github.com/takahirom/roborazzi/pull/262) ##### New Contributors - [@​sanao1006](https://github.com/sanao1006) made their first contribution in [https://github.com/takahirom/roborazzi/pull/248](https://github.com/takahirom/roborazzi/pull/248) **Full Changelog**: takahirom/roborazzi@1.9.0...1.10.0 </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://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xOTQuMyIsInVwZGF0ZWRJblZlciI6IjM3LjE5NC4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
github-merge-queue bot
referenced
this pull request
in slackhq/circuit
Feb 19, 2024
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [io.github.takahirom.roborazzi](https://github.com/takahirom/roborazzi) | plugin | patch | `1.10.0` -> `1.10.1` | | [io.github.takahirom.roborazzi:roborazzi-junit-rule](https://github.com/takahirom/roborazzi) | dependencies | patch | `1.10.0` -> `1.10.1` | | [io.github.takahirom.roborazzi:roborazzi-compose](https://github.com/takahirom/roborazzi) | dependencies | patch | `1.10.0` -> `1.10.1` | | [io.github.takahirom.roborazzi:roborazzi](https://github.com/takahirom/roborazzi) | dependencies | patch | `1.10.0` -> `1.10.1` | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>takahirom/roborazzi (io.github.takahirom.roborazzi)</summary> ### [`v1.10.1`](https://github.com/takahirom/roborazzi/releases/tag/1.10.1) [Compare Source](https://github.com/takahirom/roborazzi/compare/1.10.0...1.10.1) ##### Changes from 1.10.0 This release includes a bug fix for a Javascript error that prevented the HTML report from being displayed. ##### Changes from 1.9.0 ##### New experimental feature ##### Custom context data for images and reports Custom context data enables the addition of information to images and reports in Roborazzi's tests, which I believe is very important. For example, it can include the test class name of a screenshot or whether it is in dark mode. You can now add custom context data using RoborazziOptions, and Roborazzi will add the test class name metadata if you use RoborazziRule. If you have any opinions about this feature, please let me know at [https://github.com/takahirom/roborazzi/issues/257](https://github.com/takahirom/roborazzi/issues/257). Furthermore, this opens up possibilities with AI. Given that AI now possesses multimodal capabilities, it has become feasible for AI to process images. This feature was made possible thanks to [@​sanao1006](https://github.com/sanao1006) 's contribution of migrating from org.json to gson. ```kotlin onView(ViewMatchers.isRoot()) .captureRoboImage( roborazziOptions = RoborazziOptions( contextData = mapOf( "context_data_key" to "context_data_value" ) ) ) } ``` <img width="1335" alt="image" src="https://github.com/takahirom/roborazzi/assets/1386930/16341681-ab11-4f1c-b231-0c5a26e1a0e2"> ##### Important bug fix Gradle attempts to load the test cache whenever possible, but there was an issue where Roborazzi couldn't restore images from the cache. This release includes a fix for this problem. Thank you, [@​francescocervone](https://github.com/francescocervone), for reporting this issue. ##### What's Changed - \[CI]Escape branch name by [@​takahirom](https://github.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/253](https://github.com/takahirom/roborazzi/pull/253) - refactor: migrating from the `org.json` Library to `Gson` by [@​sanao1006](https://github.com/sanao1006) in [https://github.com/takahirom/roborazzi/pull/248](https://github.com/takahirom/roborazzi/pull/248) - doc: Add build.gradle.kts examples by [@​sanao1006](https://github.com/sanao1006) in [https://github.com/takahirom/roborazzi/pull/256](https://github.com/takahirom/roborazzi/pull/256) - Enable adding metadata to image by [@​takahirom](https://github.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/259](https://github.com/takahirom/roborazzi/pull/259) - Add contextdata tabs to HTML report by [@​takahirom](https://github.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/260](https://github.com/takahirom/roborazzi/pull/260) - Fix Roborazzi output cache by [@​takahirom](https://github.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/262](https://github.com/takahirom/roborazzi/pull/262) ##### New Contributors - [@​sanao1006](https://github.com/sanao1006) made their first contribution in [https://github.com/takahirom/roborazzi/pull/248](https://github.com/takahirom/roborazzi/pull/248) **Full Changelog**: takahirom/roborazzi@1.9.0...1.10.0 </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://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xOTguMCIsInVwZGF0ZWRJblZlciI6IjM3LjE5OC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.