From bf9ae2000f6dfcacaec3a7a3385351f5b0ad256e Mon Sep 17 00:00:00 2001 From: Rexogamer Date: Mon, 27 Apr 2026 21:13:39 +0100 Subject: [PATCH] docs: add details on updating screenshot tests to CONTRIBUTING.md --- CONTRIBUTING.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0fd861907..ff3282bc9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -75,6 +75,19 @@ For a quick way to run a specific emulator test: ./gradlew connectedFullDebugAndroidTest \ -Pandroid.testInstrumentationRunnerArguments.class=org.fdroid.fdroid.MainActivityExpressoTest +## Screenshot tests + +F-Droid uses screenshot tests to check that everything displays correctly. If +you've intentionally updated the UI or visible strings, you'll need to update +the screenshots to avoid breaking the tests. + +Make sure you've pulled the screenshot files: + + git lfs pull + +To update the screenshots: + + ./gradlew :app:updateBasicDefaultDebugScreenshotTest ## Making releases