From 6fd12448cba299c96620134b475df262a45a6b78 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Fri, 5 May 2023 09:47:10 +0200 Subject: [PATCH] Update documentation about screenshot test. --- docs/screenshot_testing.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/screenshot_testing.md b/docs/screenshot_testing.md index cf1973ab4e..37299af7fc 100644 --- a/docs/screenshot_testing.md +++ b/docs/screenshot_testing.md @@ -30,11 +30,16 @@ If installed correctly, `git push` and `git pull` will now include LFS content. ## Recording -It's recommended to delete the content of the folder `/snapshots` before recording. +```shell +./gradlew recordPaparazziDebug +``` + +The task will delete the content of the folder `/snapshots` before recording (see the task `removeOldSnapshots` defined in the project). + +If this is not the case, you can run ```shell rm -rf ./tests/uitests/src/test/snapshots -./gradlew recordPaparazziDebug ``` Paparazzi will generate images in `:tests:uitests/src/test/snapshots`, which will need to be committed to the repository using Git LFS.