facebook / screenshot-tests-for-android

Generate fast deterministic screenshots during Android instrumentation tests
http://facebook.github.io/screenshot-tests-for-android
Apache License 2.0
1.74k stars 229 forks source link

Recording a single test deletes all other screenshots #302

Open eliddell1 opened 2 years ago

eliddell1 commented 2 years ago

When i run a record on a single test like so: ./gradlew recordDebugAndroidTestScreenshotTest -Pandroid.testInstrumentationRunnerArguments.class=com.example.brickcitydesign.TitleGroupTest

It deletes all other screenshots, so when i run

./gradlew verifyDebugAndroidTestScreenshotTest

it fails because of missing screenshots. For workflow purposes it would be useful to be able to record a single test without loosing other screenshots, to verify all expected and non expected changes when updating a UI element intentionally