# screenshot-testing

Screenshot testing is a software testing technique that captures a user interface screenshot and compares it with an approved reference image to detect visual changes.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## StatePortal: Agentic Checkpoint Synthesis for Testing Deep States in Interactive Software

DevFeed: [StatePortal: Agentic Checkpoint Synthesis for Testing Deep States in Interactive Software](<https://devfeed.tech/articles/stateportal-agentic-checkpoint-synthesis-for-testing-deep-states-in-interactive-software-142134.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.23257>)

Author: Zhiyuan Peng (Shanghai Jiao Tong University), Wei Tao (LIGHTSPEED), Chenhao Ying (Shanghai Jiao Tong University), Yuan Luo (Shanghai Jiao Tong University), Yiwen Guo (Independent Researcher)

Published: 2026-11-19T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [Test automation](<https://devfeed.tech/topics/test-automation.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [screenshot-testing](<https://devfeed.tech/topics/screenshot-testing.md>)

Tags: [acceptance](<https://devfeed.tech/tags/acceptance.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [application](<https://devfeed.tech/tags/application.md>), [applications](<https://devfeed.tech/tags/applications.md>), [automation](<https://devfeed.tech/tags/automation.md>), [checkpoint](<https://devfeed.tech/tags/checkpoint.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [deep](<https://devfeed.tech/tags/deep.md>), [evaluation](<https://devfeed.tech/tags/evaluation.md>), [functional](<https://devfeed.tech/tags/functional.md>), [gui](<https://devfeed.tech/tags/gui.md>), [history](<https://devfeed.tech/tags/history.md>), [hybrid](<https://devfeed.tech/tags/hybrid.md>), [interaction](<https://devfeed.tech/tags/interaction.md>), [interactive](<https://devfeed.tech/tags/interactive.md>), [interfaces](<https://devfeed.tech/tags/interfaces.md>), [language](<https://devfeed.tech/tags/language.md>), [software](<https://devfeed.tech/tags/software.md>), [synthesis](<https://devfeed.tech/tags/synthesis.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

StatePortal synthesizes replayable checkpoints for deep GUI states from natural-language tests and read-only source access. An onboarding agent binds or synthesizes a per-application restore hook without hand-written hook code. Checkpoint acceptance requires both programmatic-state and visual oracles to pass, addressing cases where state checks succeed but rendering is wrong. In DeepStateBench (61 tasks across 10 applications), seeded GUI agents completed 10.4% of trials versus 0% unseeded under the same pixel action space; StatePortal, which also delivers the target action through the hook, completed 27.5%. Across 1,361 replays, 98.90% reproduced the original verdict with zero model calls, and the hybrid oracle detected 77 of 80 controlled visual faults missed by state checks alone.

### Source excerpt

arXiv:2611.23257v1 Announce Type: new Abstract: Large language models have reduced the effort to generate code for interactive software with graphical user interfaces (GUIs). For such software, a key testing bottleneck is reaching a deep state, one that requires a long interaction history. The cost of reaching it recurs across commits, and the GUI automation that could amortize it assumes a DOM or accessibility tree that self-rendered engines do not expose. We introduce StatePortal, an agent that synthesizes a checkpoint, an artifact that restores that state and can be versioned and replayed, from a natural-language functional test case and read-only access to the target's source code. The checkpoint is restored through a per-application hook that an onboarding agent binds or synthesizes once without hand-written hook code. Because a checkpoint can satisfy state checks while rendering incorrectly, checkpoints are scored by hybrid programmatic-state and visual evaluation: acceptance requires both a programmatic-state oracle and a visual oracle to pass. We calibrate the visual oracle against a blinded cross-VLM reference. We release DeepStateBench, 61 deep-state tasks across 10 interactive applications that span five language families and six rendering stacks, with source sizes from 874 to 7.2M lines. Across three registered models, a GUI agent seeded with synthesized checkpoints completes 10.4% of trials, compared with 0% without seeding under the same pixel action space, while StatePortal, which also delivers the target action through the hook, completes 27.5%. Over 1,361 replays of 112 checkpoints, 98.90% reproduce the original verdict with zero model calls, and the hybrid oracle detects 96.25% (77/80) of controlled visual faults invisible to programmatic-state checks alone. We open-source our code at https://github.com/pzy2000/State_Portal and website at https://stateportal.mineyosemite.chatgpt.site

## AnimWeb-Bench: Benchmarking Animated Webpage Code Generation from Videos

DevFeed: [AnimWeb-Bench: Benchmarking Animated Webpage Code Generation from Videos](<https://devfeed.tech/articles/animweb-bench-benchmarking-animated-webpage-code-generation-from-videos-124037.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.09769>)

Author: Zhongyi Zhang, Jingyu Xiao, Shuqing Li, Michael R. Lyu

Published: 2026-11-09T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [web animation](<https://devfeed.tech/topics/web-animation.md>), [AI in frontend development](<https://devfeed.tech/topics/ai-in-frontend-development.md>), [screenshot-testing](<https://devfeed.tech/topics/screenshot-testing.md>), [Image](<https://devfeed.tech/topics/image.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [appearance](<https://devfeed.tech/tags/appearance.md>), [assets](<https://devfeed.tech/tags/assets.md>), [benchmarking](<https://devfeed.tech/tags/benchmarking.md>), [code-generation](<https://devfeed.tech/tags/code-generation.md>), [coding-agents](<https://devfeed.tech/tags/coding-agents.md>), [continuous](<https://devfeed.tech/tags/continuous.md>), [cs-cv](<https://devfeed.tech/tags/cs-cv.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [css-animation](<https://devfeed.tech/tags/css-animation.md>), [dataset](<https://devfeed.tech/tags/dataset.md>), [evaluation](<https://devfeed.tech/tags/evaluation.md>), [feedback](<https://devfeed.tech/tags/feedback.md>), [multimodal](<https://devfeed.tech/tags/multimodal.md>), [size](<https://devfeed.tech/tags/size.md>), [state](<https://devfeed.tech/tags/state.md>), [structure](<https://devfeed.tech/tags/structure.md>), [text](<https://devfeed.tech/tags/text.md>), [ui-components](<https://devfeed.tech/tags/ui-components.md>), [velocity](<https://devfeed.tech/tags/velocity.md>), [video](<https://devfeed.tech/tags/video.md>), [videos](<https://devfeed.tech/tags/videos.md>)

### AI overview

AnimWeb-Bench evaluates how well multimodal language models and coding agents can recreate animated webpages from videos. Its 124 real-world pages cover seven application domains and 33 animation types; 91.9% combine multiple types. The benchmark pairs each page's reference video with its original static assets and scores both static appearance on aligned keyframes and animation fidelity across frames, including component position, size, velocity, and appearance. Evaluation of 14 models and three coding agents found animation harder to reproduce than static appearance. For coding agents, explicit frame inspection and render feedback improved results, while rapid continuous changes proved harder to recreate than discrete state transitions.

### Source excerpt

arXiv:2611.09769v1 Announce Type: new Abstract: Animation is pervasive on the Web, the CSS animation property alone appears on over three-quarters of webpages. Yet existing webpage code generation benchmarks target static screenshots, user-triggered interactions, or isolated motion graphics, leaving the ability of multimodal large language models (MLLMs) and coding agents to reconstruct complete animated webpages largely unexplored. To fill this gap, we introduce AnimWeb-Bench, the first benchmark for animated webpage code generation from videos. It comprises 124 real-world webpages spanning 7 application domains and 33 animation types, with 91.9% of pages combining multiple types, each paired with a reference video and the static assets of the original webpage. We further propose a human-aligned, two-dimensional evaluation protocol: Static Appearance Fidelity measures structure, text, color, and visual similarity on aligned keyframes, while Animation Fidelity tracks UI components across frames and compares their position, size, velocity, and appearance with those in the reference video. Evaluating 14 MLLMs and three coding agents reveals: (1) reproducing webpage animations is substantially more difficult than reproducing static appearance; (2) explicit frame inspection and render feedback improve the reconstruction quality of coding agents; and (3) rapid, continuous changes are harder to reproduce than discrete state transitions. Our code and dataset are available at https://starry1001.github.io/AnimWeb-Bench-website/ .

## Handling Asynchronous Images in Android Screenshot Tests

DevFeed: [Handling Asynchronous Images in Android Screenshot Tests](<https://devfeed.tech/articles/handling-asynchronous-images-in-android-screenshot-tests-24846.md>)

Original publisher: [Read original article](<https://alexzh.com/handling-asynchronous-images-in-android-screenshot-tests/>)

Author: Alex Zhukovich

Published: 2026-08-27T07:41:23Z

Content type: article

Language: en

Sources: [Alex Zhuk](<https://devfeed.tech/sources/alex-zhuk-android-development-and-testing.md>)

Topics: [screenshot-testing](<https://devfeed.tech/topics/screenshot-testing.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Android Testing](<https://devfeed.tech/topics/android-testing.md>), [screenshot](<https://devfeed.tech/topics/screenshot.md>), [Jetpack Compose](<https://devfeed.tech/topics/jetpack-compose.md>), [Image](<https://devfeed.tech/topics/image.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [coil](<https://devfeed.tech/tags/coil.md>), [images](<https://devfeed.tech/tags/images.md>), [screenshot](<https://devfeed.tech/tags/screenshot.md>), [screenshot-testing](<https://devfeed.tech/tags/screenshot-testing.md>), [tests](<https://devfeed.tech/tags/tests.md>)

### AI overview

Screenshot test frameworks wait for the UI to become idle but do not wait for asynchronous image requests, so captures may show blank images or vary between runs. For apps using Coil, the article recommends coil-test to provide predictable fake images for requests; a custom JUnit rule can set up and reset the image loader around each test, including after failures. As a fallback when that option is unavailable, Compose inspection mode is mentioned. In layoutlib-based Compose Preview Screenshot Testing and Paparazzi, network images cannot load, leaving empty space. The excerpt notes that placeholder images are often sufficient when tests verify layout across system configurations rather than image content; it does not include implementation details for the approaches.

### Source excerpt

This article is based on a chapter from my book, Mastering Android Screenshot Testing. Modern applications frequently load images asynchronously, which is a common cause of unstable screenshot tests or confusion when you review newly generated screenshots. A test can pass locally and fail on CI, produce a different image

## Catch visual regressions with Snapshots, now in beta

DevFeed: [Catch visual regressions with Snapshots, now in beta](<https://devfeed.tech/articles/catch-visual-regressions-with-snapshots-now-in-beta-24112.md>)

Original publisher: [Read original article](<https://blog.sentry.io/snapshots-available-beta/>)

Author: Max Topolsky

Published: 2026-06-11T09:00:00Z

Content type: release

Language: en

Sources: [Sentry](<https://devfeed.tech/sources/sentry-blog.md>)

Topics: [visual-regression-testing](<https://devfeed.tech/topics/visual-regression-testing.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [screenshot-testing](<https://devfeed.tech/topics/screenshot-testing.md>), [Continuous integration](<https://devfeed.tech/topics/continuous-integration.md>), [User Experience](<https://devfeed.tech/topics/user-experience.md>), [test-coverage](<https://devfeed.tech/topics/test-coverage.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agents](<https://devfeed.tech/tags/agents.md>), [beta](<https://devfeed.tech/tags/beta.md>), [changes](<https://devfeed.tech/tags/changes.md>), [ci](<https://devfeed.tech/tags/ci.md>), [commit](<https://devfeed.tech/tags/commit.md>), [diffs](<https://devfeed.tech/tags/diffs.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [guardrail](<https://devfeed.tech/tags/guardrail.md>), [guardrails](<https://devfeed.tech/tags/guardrails.md>), [screenshot](<https://devfeed.tech/tags/screenshot.md>), [sentry](<https://devfeed.tech/tags/sentry.md>), [snapshots](<https://devfeed.tech/tags/snapshots.md>)

### AI overview

Sentry Snapshots is in beta and adds visual checks to CI: upload application screenshots, compare them with a baseline, and receive a PR notice when differences appear so a person can inspect whether they are intended. Screenshots across themes, languages, or viewports can add visual coverage. The excerpt also describes using image metadata to help an LLM locate tests and add screenshots for different component states. The provided text ends mid-sentence, so it does not establish the rest of that agent workflow.

### Source excerpt

Sentry Snapshots is now in beta. Get screenshot diffing in CI to catch unintended visual changes on every commit, for any platform with a frontend.

## Writing interactive screenshot tests in Compose UI with Touch Robot

DevFeed: [Writing interactive screenshot tests in Compose UI with Touch Robot](<https://devfeed.tech/articles/writing-interactive-screenshot-tests-in-compose-ui-with-touch-robot-29039.md>)

Original publisher: [Read original article](<https://saket.me/touch-robot/>)

Author: Saket Narayan

Published: 2026-05-24T06:09:55Z

Content type: tutorial

Language: en

Sources: [Saket Narayan](<https://devfeed.tech/sources/saket-narayan.md>)

Topics: [Jetpack Compose](<https://devfeed.tech/topics/jetpack-compose.md>), [screenshot-testing](<https://devfeed.tech/topics/screenshot-testing.md>), [ui-testing](<https://devfeed.tech/topics/ui-testing.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [compose](<https://devfeed.tech/tags/compose.md>), [screenshot-testing](<https://devfeed.tech/tags/screenshot-testing.md>), [snapshots](<https://devfeed.tech/tags/snapshots.md>), [testing](<https://devfeed.tech/tags/testing.md>), [ui-testing](<https://devfeed.tech/tags/ui-testing.md>)

### AI overview

The article explains how Block built Touch Robot to generate fake touch events for interactive screenshot tests in Compose UI. It describes using animated PNG snapshots to verify interactions such as clicks, swipes, drawing, and pinch gestures, with deterministic frame comparisons for regression testing.

### Source excerpt

These are some examples of real issues that were happening at Block. Each of them was frustrating because we were regularly shipping broken experiences to customers despite having sufficient test coverage. We had screenshot tests using Paparazzi, but they were mostly static snapshots that verified layout correctness. We had connected device tests, but they ran [...] The post Writing interactive screenshot tests in Compose UI with Touch Robot appeared first on Saket Narayan.

## Headless Screenshot Testing in Thumbtack's Android Apps

DevFeed: [Headless Screenshot Testing in Thumbtack's Android Apps](<https://devfeed.tech/articles/headless-screenshot-testing-in-thumbtack-s-android-apps-24725.md>)

Original publisher: [Read original article](<https://medium.com/thumbtack-engineering/headless-screenshot-testing-in-thumbtacks-android-apps-c6254f229a97?source=rss----1199c607a13f---4>)

Author: Brian Terczynski

Published: 2026-03-31T22:47:00Z

Content type: tutorial

Language: en

Sources: [Thumbtack Engineering - Medium](<https://devfeed.tech/sources/thumbtack-engineering-medium.md>)

Topics: [screenshot-testing](<https://devfeed.tech/topics/screenshot-testing.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Android](<https://devfeed.tech/topics/android.md>), [Emulator](<https://devfeed.tech/topics/emulator.md>), [Firebase](<https://devfeed.tech/topics/firebase.md>), [Jenkins](<https://devfeed.tech/topics/jenkins.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-app-development](<https://devfeed.tech/tags/android-app-development.md>), [emulator](<https://devfeed.tech/tags/emulator.md>), [firebase](<https://devfeed.tech/tags/firebase.md>), [jenkins](<https://devfeed.tech/tags/jenkins.md>), [mobile](<https://devfeed.tech/tags/mobile.md>), [robolectric](<https://devfeed.tech/tags/robolectric.md>), [roborazzi](<https://devfeed.tech/tags/roborazzi.md>), [screenshot-testing](<https://devfeed.tech/tags/screenshot-testing.md>), [sdk](<https://devfeed.tech/tags/sdk.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

Thumbtack explains how it chose Roborazzi to run high-fidelity screenshot tests for its Android apps without an emulator. The article describes how emulator-based testing was slow and difficult to use for Jenkins verification, especially with more than 1,500 tests.

### Source excerpt

How we chose Roborazzi for fast, easy, and high-fidelity screenshot tests of our Android apps, without needing to run them on an emulator. As mentioned in our earlier blog post, screenshot tests are a fundamental part of our testing pyramid at Thumbtack. They validate that our UI code renders correctly. They catch UI regressions as our code evolves. They make it easy to share incremental progress with designers. In code reviews, they provide a great way for reviewers to "see" what the UI code is doing. Finally, they are very easy to write! But they were not always easy to run. Because they tested Android UI code, they had to run in a "real" Android environment so that the drawing operations would work. This meant running them on an Android device or emulator. To ensure consistent renderings, developers would have to run their tests on the same device used by our CI job. In the past, this meant having to run a script that would connect to our cloud device testing provider to generate the reference image, which would then be downloaded for inclusion in the local Git branch. Such a process would take minutes to run (not including build time). This got easier when we switched to Firebase Test Lab (FTL), because their emulators were the same as the emulators provided in the Android SDK used on developers' machines. Developers could then simply run their tests on a local emulator which sped up execution time significantly. But it still meant the emulator profile needed to match that of the device on FTL; in particular, the screen size and pixel density. Another problem was, because these were run on an emulator, they could not run with our CR verification job on Jenkins because their execution time was too slow (especially since we have over 1,500 of these tests!). This therefore meant that we had to run our screenshot tests separately, and they could not be used to gate code pushes because they were just too slow to run. So what would often happen was developers would me

## Introducing Visual Testing in Maestro

DevFeed: [Introducing Visual Testing in Maestro](<https://devfeed.tech/articles/introducing-visual-testing-in-maestro-22935.md>)

Original publisher: [Read original article](<https://maestro.dev/blog/visual-testing>)

Author: Dan Caseley

Published: 2026-03-02T07:00:00Z

Content type: article

Language: en

Sources: [Mobile](<https://devfeed.tech/sources/mobile-dev-medium.md>)

Topics: [visual-regression-testing](<https://devfeed.tech/topics/visual-regression-testing.md>), [screenshot-testing](<https://devfeed.tech/topics/screenshot-testing.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>)

Tags: [bugs](<https://devfeed.tech/tags/bugs.md>), [button](<https://devfeed.tech/tags/button.md>), [buttons](<https://devfeed.tech/tags/buttons.md>), [change](<https://devfeed.tech/tags/change.md>), [changes](<https://devfeed.tech/tags/changes.md>), [charts](<https://devfeed.tech/tags/charts.md>), [cli](<https://devfeed.tech/tags/cli.md>), [clock](<https://devfeed.tech/tags/clock.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [color](<https://devfeed.tech/tags/color.md>), [compare](<https://devfeed.tech/tags/compare.md>), [comparison](<https://devfeed.tech/tags/comparison.md>), [complex](<https://devfeed.tech/tags/complex.md>), [component](<https://devfeed.tech/tags/component.md>), [components](<https://devfeed.tech/tags/components.md>), [maestro](<https://devfeed.tech/tags/maestro.md>), [studio](<https://devfeed.tech/tags/studio.md>), [testing](<https://devfeed.tech/tags/testing.md>), [v2](<https://devfeed.tech/tags/v2.md>), [visual-testing](<https://devfeed.tech/tags/visual-testing.md>)

### AI overview

Maestro Visual Testing compares screenshots across runs to catch visible regressions that functional tests may miss. `takeScreenshot` creates a baseline; `assertScreenshot` compares the current screen with it and fails when the match falls below a threshold. The default is 95%, allowing up to 5% of pixels to differ; `thresholdPercentage` adjusts this per assertion. `cropOn` uses a Maestro selector to focus on an element or container, helping exclude dynamic UI such as clocks, timestamps, or user avatars. The text suggests higher thresholds (98-99%) for pixel-sensitive components and slightly lower ones for screens with subtle dynamic content that cannot be cropped away. On failure, Maestro generates a diff. The feature is identified as available in CLI v2.2.0, Maestro Studio, and Maestro Cloud; suggested uses include shared design system components, dependency upgrades, and dark mode or theming checks.

### Source excerpt

Available in CLI v2.2.0, Maestro Studio, and Maestro Cloud

## Why Visual Testing Is Critical for Mobile App Quality

DevFeed: [Why Visual Testing Is Critical for Mobile App Quality](<https://devfeed.tech/articles/why-visual-testing-is-critical-for-mobile-app-quality-24858.md>)

Original publisher: [Read original article](<https://alexzh.com/why-visual-testing-is-critical-for-mobile-app-quality/>)

Author: Alex Zhukovich

Published: 2025-03-13T20:59:10Z

Content type: tutorial

Language: en

Sources: [Alex Zhuk](<https://devfeed.tech/sources/alex-zhuk-android-development-and-testing.md>)

Topics: [screenshot-testing](<https://devfeed.tech/topics/screenshot-testing.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [visual-regression-testing](<https://devfeed.tech/topics/visual-regression-testing.md>)

Tags: [accessibility](<https://devfeed.tech/tags/accessibility.md>), [alignment](<https://devfeed.tech/tags/alignment.md>), [allows](<https://devfeed.tech/tags/allows.md>), [android](<https://devfeed.tech/tags/android.md>), [android-development](<https://devfeed.tech/tags/android-development.md>), [android-studio](<https://devfeed.tech/tags/android-studio.md>), [android-testing](<https://devfeed.tech/tags/android-testing.md>), [app](<https://devfeed.tech/tags/app.md>), [application](<https://devfeed.tech/tags/application.md>), [color](<https://devfeed.tech/tags/color.md>), [comparison](<https://devfeed.tech/tags/comparison.md>), [devices](<https://devfeed.tech/tags/devices.md>), [layout](<https://devfeed.tech/tags/layout.md>), [problems](<https://devfeed.tech/tags/problems.md>), [screenshot](<https://devfeed.tech/tags/screenshot.md>), [screenshot-testing](<https://devfeed.tech/tags/screenshot-testing.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>), [themes](<https://devfeed.tech/tags/themes.md>), [this](<https://devfeed.tech/tags/this.md>), [ui](<https://devfeed.tech/tags/ui.md>), [visual-testing](<https://devfeed.tech/tags/visual-testing.md>)

### AI overview

Visual testing catches pixel-level UI defects that behavioral UI and end-to-end tests may miss. In Android, screenshot tests compare the current UI with a baseline, or "golden screenshot"; a record command creates baselines and a verify command checks against them. The excerpt lists issues this can expose, including spacing and alignment errors, incorrect theme colors, device- or font-size-specific layout breaks, RTL/LTR rendering problems, localized text overflow, and color-contrast concerns. It notes that Android has multiple screenshot-testing frameworks, but the excerpt does not provide their comparison or further implementation details.

### Source excerpt

Visual tests catches UI imperfections that traditional UI tests miss. They detect misalignments, color issues, and layout problems across different devices and themes. This article introduces visual testing concepts, explains how screenshot comparison works, and demonstrates implementation.

## Snapshot Testing Libraries for Android: Paparazzi vs Shot

DevFeed: [Snapshot Testing Libraries for Android: Paparazzi vs Shot](<https://devfeed.tech/articles/snapshot-testing-libraries-for-android-paparazzi-vs-shot-42189.md>)

Original publisher: [Read original article](<https://medium.com/astronauts-id/snapshot-testing-libraries-for-android-paparazzi-vs-shot-d3e7427ea534?source=rss----f54da6775e90---4>)

Author: Fajar Febriyan

Published: 2024-02-29T03:56:36Z

Content type: comparison

Language: en

Sources: [Astronauts](<https://devfeed.tech/sources/astronauts-id-medium.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [screenshot-testing](<https://devfeed.tech/topics/screenshot-testing.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [ui-testing](<https://devfeed.tech/topics/ui-testing.md>), [testing-library](<https://devfeed.tech/topics/testing-library.md>), [Framework](<https://devfeed.tech/topics/framework.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-app-development](<https://devfeed.tech/tags/android-app-development.md>), [compare](<https://devfeed.tech/tags/compare.md>), [comparison](<https://devfeed.tech/tags/comparison.md>), [developers](<https://devfeed.tech/tags/developers.md>), [screenshot-testing](<https://devfeed.tech/tags/screenshot-testing.md>), [testing](<https://devfeed.tech/tags/testing.md>), [testing-library](<https://devfeed.tech/tags/testing-library.md>), [ui-testing](<https://devfeed.tech/tags/ui-testing.md>)

### AI overview

This comparison explains snapshot testing for Android UI components and contrasts the Shot and Paparazzi libraries. It covers visual regression detection, cross-device consistency, setup, golden images, and verification.

### Source excerpt

What is snapshot testing? Snapshot testing, also known as screenshot testing, is an automated testing technique that captures screenshots of User Interface (UI) components and compares them against reference images. The idea is simple: we save a reference screenshot of a UI component in a known good state, and during testing, we capture a new screenshot and compare it to the reference. If these two images match, the test passes; if not, it fails. Comparing the golden image (real pineapple) with the image (pineapple illustration)Then why snapshot testing? According to the Testing Pyramid, UI testing, also known as, end-to-end testing is a type of testing recommended to be carried out in application development. UI testing is basically a mechanism meant to test the UI aspect of any software that users come into contact with. One way to do this is with a simple concept not requiring painful scenarios which is the snapshot testing. The image above is referenced from Martin Fowler's post regarding the Test Pyramid Snapshot testing is beneficial for various reasons: Visual Regression Detection: It helps identifying unintended visual changes introduced during development. Ease of Use: Writing snapshot tests is often simpler and more intuitive than crafting complex UI test scripts. Cross-Platform Testing: Snapshot tests can be used to ensure consistency across various Android devices and configurations. Let's dive into the libraries We chose to discuss and compare these 2 libraries because they have different methods and produce different results. Shot Shot is an open-source snapshot testing library developed by Pedro Vicente Gómez Sánchez. It integrates seamlessly with popular testing frameworks like JUnit and Espresso, making it a popular choice among Android developers. Paparazzi Paparazzi is another popular snapshot testing library developed by Cash App. It offers robust screenshot comparison and supports testing on a wide range of Android devices. How it works? Setup:

## Efficient Testing with Robolectric & Roborazzi Across Many UI States, Devices and Configurations

DevFeed: [Efficient Testing with Robolectric & Roborazzi Across Many UI States, Devices and Configurations](<https://devfeed.tech/articles/efficient-testing-with-robolectric-roborazzi-across-many-ui-states-devices-and-configurations-25690.md>)

Original publisher: [Read original article](<https://sergiosastre.hashnode.dev/efficient-testing-with-robolectric-roborazzi-across-many-ui-states-devices-and-configurations>)

Author: Sergio Sastre Florez

Published: 2023-11-09T21:45:00Z

Content type: tutorial

Language: en

Sources: [Sergio's little tech corner](<https://devfeed.tech/sources/sergio-s-little-tech-corner.md>)

Topics: [robolectric](<https://devfeed.tech/topics/robolectric.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [screenshot-testing](<https://devfeed.tech/topics/screenshot-testing.md>), [ui-testing](<https://devfeed.tech/topics/ui-testing.md>), [Mobile Testing](<https://devfeed.tech/topics/mobile-testing.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-app-development](<https://devfeed.tech/tags/android-app-development.md>), [devices](<https://devfeed.tech/tags/devices.md>), [parameterized-tests](<https://devfeed.tech/tags/parameterized-tests.md>), [robolectric](<https://devfeed.tech/tags/robolectric.md>), [roborazzi](<https://devfeed.tech/tags/roborazzi.md>), [testing](<https://devfeed.tech/tags/testing.md>), [ui](<https://devfeed.tech/tags/ui.md>)

### AI overview

Robolectric and Roborazzi can run screenshot tests without a physical device or emulator, and parameterized tests can extend coverage across UI states and device configurations. For UI states, the excerpt recommends enums: their names can uniquely identify screenshot files, and their values can supply test parameters. Robolectric device qualifiers are dash-separated strings describing device properties; they can be set statically with annotations or dynamically, since annotation arguments must be known at compile time and therefore cannot vary in parameterized tests. The excerpt introduces these steps but does not include the complete examples or configuration guidance.

### Source excerpt

Robolectric is a popular UI testing tool from Google that enables running UI tests without a physical device or emulator. It supports most androidx.test APIs, like Espresso, ActivityScenario & FragmentScenario as well as ComposeTestRule. Robolectric ...

## Screenshot Tests Are Manual Tests

DevFeed: [Screenshot Tests Are Manual Tests](<https://devfeed.tech/articles/screenshot-tests-are-manual-tests-30605.md>)

Original publisher: [Read original article](<https://ryanharter.com/blog/2023/10/screenshot-tests-are-manual-tests/>)

Published: 2023-10-17T16:00:00Z

Content type: opinion

Language: en

Sources: [Blogs on Ryan Harter](<https://devfeed.tech/sources/blogs-on-ryan-harter.md>)

Topics: [screenshot-testing](<https://devfeed.tech/topics/screenshot-testing.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [ui-testing](<https://devfeed.tech/topics/ui-testing.md>), [test-coverage](<https://devfeed.tech/topics/test-coverage.md>)

Tags: [code-coverage](<https://devfeed.tech/tags/code-coverage.md>), [screenshot-testing](<https://devfeed.tech/tags/screenshot-testing.md>), [testing](<https://devfeed.tech/tags/testing.md>), [ui-testing](<https://devfeed.tech/tags/ui-testing.md>)

### AI overview

The article explains that screenshot tests validate UI appearance and can reveal visual changes, but they do not validate application behavior. It argues that screenshot-based coverage can increase coverage numbers while still requiring manual review and complementary UI testing.

### Source excerpt

When I joined Dropbox almost 2 years ago, I was asked to help improve the screenshot testing experience, resulting in Dropshots. While I'd played around with early versions of Paparazzi by that point, many of our tests were too heavily reliant on full Activities and Fragments to make use of host side JUnit tests. The more I've worked with screenshot tests, the more I've come to understand their promises and limitations. What screenshot tests offer Screenshot testing can be really helpful to validate that elements on the screen are rendered as you expect. They can help you detect visual changes that might have otherwise gone unnoticed.

## Write Once, Test Everywhere: Cross-Library Screenshot Testing with AndroidUiTestingUtils 2.0.0

DevFeed: [Write Once, Test Everywhere: Cross-Library Screenshot Testing with AndroidUiTestingUtils 2.0.0](<https://devfeed.tech/articles/write-once-test-everywhere-cross-library-screenshot-testing-with-androiduitestingutils-2-0-0-25695.md>)

Original publisher: [Read original article](<https://sergiosastre.hashnode.dev/write-once-test-everywhere-cross-library-screenshot-testing-with-androiduitestingutils>)

Author: Sergio Sastre Florez

Published: 2023-09-15T15:06:04Z

Content type: tutorial

Language: en

Sources: [Sergio's little tech corner](<https://devfeed.tech/sources/sergio-s-little-tech-corner.md>)

Topics: [screenshot-testing](<https://devfeed.tech/topics/screenshot-testing.md>), [ui-testing](<https://devfeed.tech/topics/ui-testing.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Android](<https://devfeed.tech/topics/android.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-app-development](<https://devfeed.tech/tags/android-app-development.md>), [robolectric](<https://devfeed.tech/tags/robolectric.md>), [roborazzi](<https://devfeed.tech/tags/roborazzi.md>), [screenshot-testing](<https://devfeed.tech/tags/screenshot-testing.md>), [testing](<https://devfeed.tech/tags/testing.md>), [ui-testing](<https://devfeed.tech/tags/ui-testing.md>)

### AI overview

This tutorial explains how AndroidUiTestingUtils 2.0.0 supports cross-library screenshot tests. It describes a common interface for device configuration, the subject under test, and screenshot recording or verification, with separate modules for Paparazzi, Dropshots, Roborazzi, and Shot. It also discusses enabling Robolectric Native Graphics mode through Gradle.

### Source excerpt

As observed in the previous blog post of this series, screenshot tests have a lot in common regardless of the library they're written with, namely: Setting the device configuration (e.g. Locale, Ui Mode, Font scale...) Setting the Subject Under Tes...

## A World Beyond Libraries: Cross-Library screenshot tests on Android

DevFeed: [A World Beyond Libraries: Cross-Library screenshot tests on Android](<https://devfeed.tech/articles/a-world-beyond-libraries-cross-library-screenshot-tests-on-android-25685.md>)

Original publisher: [Read original article](<https://sergiosastre.hashnode.dev/a-world-beyond-libraries-cross-library-screenshot-tests-on-android>)

Author: Sergio Sastre Florez

Published: 2023-08-23T21:23:13Z

Content type: opinion

Language: en

Sources: [Sergio's little tech corner](<https://devfeed.tech/sources/sergio-s-little-tech-corner.md>)

Topics: [screenshot-testing](<https://devfeed.tech/topics/screenshot-testing.md>), [Android](<https://devfeed.tech/topics/android.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Library](<https://devfeed.tech/topics/library.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-app-development](<https://devfeed.tech/tags/android-app-development.md>), [robolectric](<https://devfeed.tech/tags/robolectric.md>), [roborazzi](<https://devfeed.tech/tags/roborazzi.md>), [screenshot-testing](<https://devfeed.tech/tags/screenshot-testing.md>), [screenshots](<https://devfeed.tech/tags/screenshots.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

An analysis of Android screenshot-testing libraries, comparing JVM-based approaches such as Paparazzi and Roborazzi with on-device tools. It explains trade-offs involving rendering fidelity, emulator reliability, speed, and platform limitations, including fixes in Robolectric 4.12.1.

### Source excerpt

The state of the art of screenshot testing for Android Screenshot testing is trending in Android. Many new libraries have come up, and even Google announced at I/O 20231 that they're working on a new tool for this based on Composable Previews powered...

## Understanding & Assessing Visual Regression Testing

DevFeed: [Understanding & Assessing Visual Regression Testing](<https://devfeed.tech/articles/understanding-assessing-visual-regression-testing-22787.md>)

Original publisher: [Read original article](<https://medium.com/microsoft-mobile-engineering/understanding-assessing-visual-regression-testing-4384529a8dd8?source=rss----87f10537e947---4>)

Author: Nikhita Reddy Eega

Published: 2023-07-27T12:58:43Z

Content type: article

Language: en

Sources: [Android@Microsoft](<https://devfeed.tech/sources/android-microsoft-medium.md>)

Topics: [visual-regression-testing](<https://devfeed.tech/topics/visual-regression-testing.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [screenshot-testing](<https://devfeed.tech/topics/screenshot-testing.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [2021](<https://devfeed.tech/tags/2021.md>), [about](<https://devfeed.tech/tags/about.md>), [approach](<https://devfeed.tech/tags/approach.md>), [avoid](<https://devfeed.tech/tags/avoid.md>), [based](<https://devfeed.tech/tags/based.md>), [boilerplate](<https://devfeed.tech/tags/boilerplate.md>), [bugs](<https://devfeed.tech/tags/bugs.md>), [building](<https://devfeed.tech/tags/building.md>), [can](<https://devfeed.tech/tags/can.md>), [cashapp-paparazzi](<https://devfeed.tech/tags/cashapp-paparazzi.md>), [challenges](<https://devfeed.tech/tags/challenges.md>), [changes](<https://devfeed.tech/tags/changes.md>), [code](<https://devfeed.tech/tags/code.md>), [compare](<https://devfeed.tech/tags/compare.md>), [compatibility](<https://devfeed.tech/tags/compatibility.md>), [components](<https://devfeed.tech/tags/components.md>), [facebook-sdk](<https://devfeed.tech/tags/facebook-sdk.md>), [mobile](<https://devfeed.tech/tags/mobile.md>), [regression](<https://devfeed.tech/tags/regression.md>), [regression-testing](<https://devfeed.tech/tags/regression-testing.md>), [testing](<https://devfeed.tech/tags/testing.md>), [visual-regression-testing](<https://devfeed.tech/tags/visual-regression-testing.md>)

### AI overview

Visual regression testing compares a newly captured UI snapshot with a saved "Golden" baseline; the allowed pixel difference sets the regression threshold. During View-to-Compose migration, changes in framework and styling can alter details such as padding and margins. The excerpt compares two tools: Facebook SDK is instrumentation based, requires an emulator or device, and captures whole activities or individual Views. It captured a Compose activity but not individual composables in the described tests; the article also reports an obstacle with its storage permission on Android 11 and later. Paparazzi runs modular unit tests on the JVM without a device, uses layoutlib to render screenshots, and offers capture APIs for Views and composables. The tests showed component sizing inaccuracies, for which the excerpt mentions a workaround, and the tool's layoutlib dependency can require coordinated build-system updates. Paparazzi ran faster in the reported comparison, though the tools use different testing types.

### Source excerpt

Understanding & Evaluating Visual Regression TestingPhoto by Jessica Ruscello on UnsplashDive into learning about VRT tools like Facebook SDK, Paparazzi and study their compatibility for migration. Since Jetpack Compose was released in 2021, its declarative programming model has offered a modern and intuitive approach to building user interface. Compared to View system framework, Compose promotes cohesion and simplifies state-management. This framework is lightweight because the UI components are built using composable functions as separate building pieces. With this paradigm shift, boilerplate code is lessened, code reuse is encouraged, and the development process is made simpler. Migrating to Compose seems quite appealing. Will there be any regression if we migrate from one framework to another, though? Because Compose is still relatively new compared to the well-established View-based UI, there might be potential challenges faced during the migration period. What about visual regressions? Possible visual regressions can be encountered due to different UI frameworks, view configuration and styling approach. Styling and themes are usually defined in XML resource files which are applied to the views and then rendered. Whereas in Compose, these are programmatically defined in Kotlin and then takes advantage of efficient recomposition. These variances may result in changes to padding, margin, etc. Thus, to maintain a seamless transition and avoid any visual bugs going unreported, visual regression testing can be used. This ensures that the final UI is consistent to enhance user experience. Understanding Visual Regression Testing (VRT): Let us now break down the process into two design approaches -- High level and Low level High-Level Design Approach Consists of 2 steps: 1) Record -- Generating a snapshot and saving it as Golden (baseline/reference snapshot used to compare subsequent snapshots) 2) Verify -- Compares the two snapshots High level design flowLow-Level Design

## Android UI screenshot testing across locales, font sizes, orientations, and UI modes

DevFeed: [Android UI screenshot testing across locales, font sizes, orientations, and UI modes](<https://devfeed.tech/articles/design-a-pixel-perfect-android-app-25689.md>)

Original publisher: [Read original article](<https://sergiosastre.hashnode.dev/design-a-pixel-perfect-android-app-with-screenshot-testing>)

Author: Sergio Sastre Florez

Published: 2022-03-30T05:29:19Z

Content type: tutorial

Language: en

Sources: [Sergio's little tech corner](<https://devfeed.tech/sources/sergio-s-little-tech-corner.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [screenshot-testing](<https://devfeed.tech/topics/screenshot-testing.md>), [ui-testing](<https://devfeed.tech/topics/ui-testing.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [User Experience](<https://devfeed.tech/topics/user-experience.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-app-development](<https://devfeed.tech/tags/android-app-development.md>), [arabic](<https://devfeed.tech/tags/arabic.md>), [best-practices](<https://devfeed.tech/tags/best-practices.md>), [design](<https://devfeed.tech/tags/design.md>), [language](<https://devfeed.tech/tags/language.md>), [layout](<https://devfeed.tech/tags/layout.md>), [pixel](<https://devfeed.tech/tags/pixel.md>), [screenshot-testing](<https://devfeed.tech/tags/screenshot-testing.md>), [test](<https://devfeed.tech/tags/test.md>), [testing](<https://devfeed.tech/tags/testing.md>), [ui-testing](<https://devfeed.tech/tags/ui-testing.md>), [ux](<https://devfeed.tech/tags/ux.md>)

### AI overview

This tutorial explains how Android screenshot testing can verify UI correctness across configurations such as locales, font sizes, orientations, and light or dark modes. It also discusses localization concerns including right-to-left layouts, mirrored drawables, and numeral systems.

### Source excerpt

The success of your app depends heavily on its UI/UX. The more popular your app becomes, the more you should care about the diversity of your users. They might speak different languages, suffer from some sort of visual impairment, or feel too much ey...

## An introduction to snapshot testing on Android in 2021 📸

DevFeed: [An introduction to snapshot testing on Android in 2021 📸](<https://devfeed.tech/articles/an-introduction-to-snapshot-testing-on-android-in-2021-25686.md>)

Original publisher: [Read original article](<https://sergiosastre.hashnode.dev/an-introduction-to-snapshot-testing-on-android-in-2021>)

Author: Sergio Sastre Florez

Published: 2021-08-09T20:07:20Z

Content type: tutorial

Language: en

Sources: [Sergio's little tech corner](<https://devfeed.tech/sources/sergio-s-little-tech-corner.md>)

Topics: [screenshot-testing](<https://devfeed.tech/topics/screenshot-testing.md>), [Android](<https://devfeed.tech/topics/android.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [ui-testing](<https://devfeed.tech/topics/ui-testing.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-app-development](<https://devfeed.tech/tags/android-app-development.md>), [best-practices](<https://devfeed.tech/tags/best-practices.md>), [espresso](<https://devfeed.tech/tags/espresso.md>), [introduction](<https://devfeed.tech/tags/introduction.md>), [screenshot-testing](<https://devfeed.tech/tags/screenshot-testing.md>), [testing](<https://devfeed.tech/tags/testing.md>), [ui](<https://devfeed.tech/tags/ui.md>), [ui-testing](<https://devfeed.tech/tags/ui-testing.md>), [uiautomator](<https://devfeed.tech/tags/uiautomator.md>)

### AI overview

This introduction explains snapshot testing on Android, also known as screenshot testing. It describes how snapshot tests compare rendered views with stored reference images, how they complement interaction-focused UI tests, and how they can detect visual regressions across commits.

### Source excerpt

Snapshot testing (also called screenshot testing) has been in the Android world for a while, since 8th October 2015, when Facebook open sourced the first version of their snapshot testing library. They are a special type of UI tests that inflate a vi...

## Screenshot testing with React and Storybook

DevFeed: [Screenshot testing with React and Storybook](<https://devfeed.tech/articles/screenshot-testing-with-react-and-storybook-24570.md>)

Original publisher: [Read original article](<https://medium.com/bleeding-edge/screenshot-testing-with-react-and-storybook-19ab7e49ec92?source=rss----d8ebe85cdc0f---4>)

Author: Jesse Pinho

Published: 2018-03-19T09:18:02Z

Content type: tutorial

Language: en

Sources: [Bleeding Edge - Medium](<https://devfeed.tech/sources/bleeding-edge-medium.md>)

Topics: [screenshot-testing](<https://devfeed.tech/topics/screenshot-testing.md>), [Storybook](<https://devfeed.tech/topics/storybook.md>), [React](<https://devfeed.tech/topics/react.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [styled-components](<https://devfeed.tech/topics/styled-components.md>), [Selenium](<https://devfeed.tech/topics/selenium.md>)

Tags: [continuous-integration](<https://devfeed.tech/tags/continuous-integration.md>), [react](<https://devfeed.tech/tags/react.md>), [screenshot-testing](<https://devfeed.tech/tags/screenshot-testing.md>), [selenium](<https://devfeed.tech/tags/selenium.md>), [storybook](<https://devfeed.tech/tags/storybook.md>), [styled-components](<https://devfeed.tech/tags/styled-components.md>), [testing](<https://devfeed.tech/tags/testing.md>), [visual-regression-testing](<https://devfeed.tech/tags/visual-regression-testing.md>)

### AI overview

The article explains why end-to-end UI tests can miss visual regressions and explores screenshot testing with React and Storybook to check component appearance across different states.

### Source excerpt

Visual regression testing for fun, profit, and peace of mind Illustration by Marta Pucci A friend of mine recently related a scary story about the lack of automated visual regression testing where he works--a huge international tech firm that you've heard of and probably use. He'd added a CSS class to an element to hide it from the user. Unbeknownst to him, and despite using BEM-style naming for CSS classes, this class name was already being used for an important checkbox in the user settings screen of his company's web app. The result? Users could no longer change the setting represented by the checkbox, because it was invisible! I asked him why that hadn't been caught by automated tests. He explained that, although they did have end-to-end tests in place that went through the UI and tested its functionality, the tests didn't catch the bug. Selenium was still able to check the original checkbox via its selector, so its visibility had no effect on the outcome of the test. The only way this could have been caught is via visual regression testing -- or, as it is sometimes called, screenshot testing. 💅 Switching to styled-components I recalled this story recently while working on a sizable project at Clue: converting all of our "native" CSS to use styled-components. The new helloclue.com website consists of dozens of components. An article page, for example, contains at least ten different React components, all of which have accompanying CSS files. Converting all of this CSS to styled-components means there's an enormous risk of bugs exactly like the one my friend experienced. So before the project began, I investigated setting up screenshot testing for the site. 📕 Enter Storybook (Note: if you're already familiar with Storybook and @storybook/react, feel free to skip to the next section.) We use Storybook when developing simple presentational components. This way, we can test them in every possible state, without having to reproduce all the logic and so forth required t

## Behold: Image view modes

DevFeed: [Behold: Image view modes](<https://devfeed.tech/articles/behold-image-view-modes-70642.md>)

Original publisher: [Read original article](<https://github.blog/news-insights/the-library/behold-image-view-modes/>)

Author: Cameron McEfee

Published: 2011-03-22T04:46:09Z

Content type: article

Language: en

Sources: [GitHub Blog](<https://devfeed.tech/sources/github-engineering.md>)

Topics: [screenshot-testing](<https://devfeed.tech/topics/screenshot-testing.md>), [ESP32-P4](<https://devfeed.tech/topics/esp32-p4.md>)

Tags: [canvas](<https://devfeed.tech/tags/canvas.md>), [measurement](<https://devfeed.tech/tags/measurement.md>), [news-insights](<https://devfeed.tech/tags/news-insights.md>), [skin](<https://devfeed.tech/tags/skin.md>), [swipe](<https://devfeed.tech/tags/swipe.md>), [the-library](<https://devfeed.tech/tags/the-library.md>), [view](<https://devfeed.tech/tags/view.md>)

### AI overview

GitHub describes four ways to compare images in commits: 2-Up, Swipe, Onion Skin, and Difference. The modes help developers spot size, alignment, color, and pixel changes; Difference mode requires canvas support.

### Source excerpt

Now when you view commits that include images you'll be presented with four ways to view them: 2-up, Swipe, Onion Skin. 2-Up is the default mode, which lets you get...