SnapshotTesting
-
[iOS] SnapshotTesting with SwiftUI (v1.11.0)iOS 2023. 4. 5. 08:48
SnapshotTesting SnapshotTesting์ ํตํด UI์ ์ ํจ์ฑ์ ๊ฒ์ฌํ๊ณ , ์ฝ๋ ๋ณ๊ฒฝ์ด ๋น๋ํ UI์ ์ํฅ์ ๋ฏธ์น์ง ์์๋์ง ํ์ธํ๋ค. SnapshotTesting์ด๋? Snapshot Test๋ฅผ ์ฌ์ฉํ๋ฉด ํ ์คํธ ์์ ์ UI์ ์ค๋ ์ท์ ๊ธฐ์ค์ (baseline)์ด๋ผ๊ณ ํ๋ ์ ํจํ UI ์ค๋ ์ท๊ณผ ๋น๊ตํ์ฌ UI๋ฅผ ๊ฒ์ฆํ ์ ์์ต๋๋ค. ํ ์คํธ ๋ฌ๋๋ ํ์ฌ ์ค๋ ์ท์ ๊ธฐ์ค ์ค๋ ์ท๊ณผ ๋น๊ตํ๊ณ , ์ค๋ ์ท ๊ฐ์ ์ฐจ์ด๊ฐ ์์ ๊ฒฝ์ฐ, UI๋ ๋ณ๊ฒฝ๋ ๊ฒ์ด๋ฏ๋ก ํ ์คํธ๊ฐ ์คํจํฉ๋๋ค. GitHub - pointfreeco/swift-snapshot-testing: ๐ธ Delightful Swift snapshot testing. ๐ธ Delightful Swift snapshot testing. Contribute ..