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 #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 's contribution of migrating from org.json to gson.
onView(ViewMatchers.isRoot())
.captureRoboImage(
roborazziOptions = RoborazziOptions(
contextData = mapOf(
"context_data_key" to "context_data_value"
)
)
)
}
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, for reporting this issue.
What's Changed
- [CI]Escape branch name by @takahirom in #253
- refactor: migrating from the
org.json
Library toGson
by @sanao1006 in #248 - doc: Add build.gradle.kts examples by @sanao1006 in #256
- Enable adding metadata to image by @takahirom in #259
- Add contextdata tabs to HTML report by @takahirom in #260
- Fix Roborazzi output cache by @takahirom in #262
New Contributors
- @sanao1006 made their first contribution in #248
Full Changelog: 1.9.0...1.10.0