From cd8455f24e459d7975162fee937f47cdb6c8251c Mon Sep 17 00:00:00 2001 From: Dennis Hong Date: Thu, 23 Feb 2023 16:51:13 -0600 Subject: [PATCH] update snapshot testing --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 03d5e1b..2c589a2 100644 --- a/README.md +++ b/README.md @@ -2031,8 +2031,18 @@ Robot testing is a test design pattern that makes you to create stable, readable ## Snapshot Testing +Snapshot Testing is a testing technique that can be used in Swift (and other programming languages) to test the user interface (UI) of an application. + +In Snapshot Testing, a snapshot of the UI is taken and compared to a previously saved snapshot to check if any changes have been made. This technique can be used to ensure that changes to the UI do not break the existing functionality of the application. + +### Environment Variable + +With using Environment Variable in Xcode, we can directly re-capture failing snapshot test cases + + +SNAPSHOT_TESTING = YES