Commit e2af774
fix(snapshot): Use HtmlReportWriter recording mode for sentry images
SnapshotVerifier is verify-only and always compares against golden
files. Replace it with HtmlReportWriter which has a recording mode
(paparazzi.test.record=true) that copies images with predictable
names to a configurable snapshot directory.
Pass snapshotRootDirectory=sentryOutputDir to HtmlReportWriter so
recorded images go to build/sentry-snapshots/images/ with names
matching the sidecar JSONs (Paparazzi_Preview_Test_{screenshotId}).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent d88d9ee commit e2af774
2 files changed
Lines changed: 9 additions & 4 deletions
File tree
- plugin-build/src/main/kotlin/io/sentry/android/gradle/snapshot
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
| |||
231 | 232 | | |
232 | 233 | | |
233 | 234 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
238 | 242 | | |
239 | 243 | | |
240 | 244 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
0 commit comments