Browse Source

Update documentation about screenshot test.

feature/jme/open-room-member-details-when-clicking-on-user-data
Benoit Marty 1 year ago
parent
commit
6fd12448cb
  1. 9
      docs/screenshot_testing.md

9
docs/screenshot_testing.md

@ -30,11 +30,16 @@ If installed correctly, `git push` and `git pull` will now include LFS content. @@ -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.

Loading…
Cancel
Save