Skip to content

Commit

Permalink
Merge pull request #1123 from android/ci-doc-update
Browse files Browse the repository at this point in the history
Adds link to CI guidance.
  • Loading branch information
garanj authored Jun 12, 2024
2 parents 9cebb70 + 4be2fea commit 5814e65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ComposeStarter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ This sample demonstrates two techniques for helping you design for different dis

1. Compose [`WearPreviewDevices`][wear-preview-devices] and [`WearPreviewFontScales`][wear-preview-font-scales] annotations: These generate a set of previews in the preview pane within Android Studio, for a range of different screen sizes and font display size settings, allowing you to see how your design would look.

2. Screenshot tests: This sample also demonstrates screenshot testing, for a set of [defined devices][wear-device]. For more information on screenshot testing, see this talk from [droidcon London][droidcon-talk].
2. Screenshot tests: This sample also demonstrates screenshot testing, for a set of [defined devices][wear-device]. For more information on screenshot testing, see this talk from [droidcon London][droidcon-talk], and see the [Continuous Integration][ci-guide] for more details on how to build screenshot
testing into your automated workflows.

- To generate new images for the tests, run `./gradlew recordRoborazziDebug`
- To test against existing reference images, run `./gradlew verifyRoborazziDebug`
Expand All @@ -55,3 +56,4 @@ submitting a pull request through GitHub. Please see CONTRIBUTING.md for more de
[wear-device]: https://github.com/android/wear-os-samples/blob/main/ComposeStarter/app/src/test/java/presentation/WearDevice.kt
[wear-preview-font-scales]: https://developer.android.com/reference/kotlin/androidx/wear/compose/ui/tooling/preview/WearPreviewFontScales
[wear-preview-devices]: https://developer.android.com/reference/kotlin/androidx/wear/compose/ui/tooling/preview/WearPreviewDevices
[ci-guide]: https://developer.android.com/training/testing/continuous-integration

0 comments on commit 5814e65

Please sign in to comment.