commit | 73f40b6af5f9c070c02741df93d2c15d1b91de56 | [log] [tgz] |
---|---|---|
author | Rahul Dubey <rkdubey@google.com> | Wed Sep 10 19:41:50 2025 +0000 |
committer | Rahul Dubey <rkdubey@google.com> | Tue Oct 07 23:10:15 2025 -0700 |
tree | 9f60acfa06b75ee03b5649b2c5fe3586beb1473b | |
parent | 6cacaf05f17c5b9e6d1db0a7a0a1a888d20edb5a [diff] |
Implement action to update ss test ref images This change implements the `UpdateReferenceImagesAction` and the backend logic required to run screenshot tests and display the results in the UI. This action triggers the build system to generate and display new screenshots in the UI. The action's workflow is as follows: 1. Identifies all `@PreviewTest` functions within the current context. 2. Runs the screenshot test task (e.g., `validateDebugScreenshotTest`) using a new `ScreenshotTestRunner`. 3. Upon task completion, a `TestResultParser` parses the JUnit XML output to extract the paths of newly generated images. 4. These image paths are passed to the `UpdateReferenceImagesDialog` to be displayed to the user. 5. 'ScreenshotTestBuildSystemAdapter' interface decouples the core features from a specific build system, making it extensible Bug: 439995792 Test: Existing. Tested in local env Change-Id: Idd09cabf0684444abc4da9ec277200a45be573c4
This is the source code of the Android plugin for IntelliJ platform, which is also the main part of Android Studio.
See the links below for implementation details and make sure to read IntelliJ Platform SDK docs first.