cashapp / paparazzi

Render your Android screens without a physical device or emulator
https://cashapp.github.io/paparazzi/
Apache License 2.0
2.24k stars 212 forks source link

Adding `cleanRecordPaparazzi...` task to help tidy up orphaned snapshots #1316

Closed nak5ive closed 5 months ago

nak5ive commented 5 months ago

This adds a global task deletePaparazziSnapshots and variant-specific tasks cleanRecordPaparazzi[Debug]

A clean-record task helps identify and tidy-up orphaned snapshots after test coverage/naming changes.

nak5ive commented 5 months ago

Imagine changing the name of test method in FormBlocker, and deleting 1000+ images and rewriting 998? Maybe I'm prematurely optimizing?

i feel like if you're calling cleanRecordPD there's an expectation that it does this.

Also, can we add tests as part of this PR?

yep! working on that