"Snapshot testing with FBSnapshotTestCase" by Ahmed Sulaiman
This talk was made for CocoaHeads Kyiv #10 which took place 10 Dec 2016, and it gives a brief introduction to FBSnapshotTestCase, describes how to use it properly and motivates you to use it.
with needed condi5ons and verify it func testLoginButton() { let loginButton = LoginButton() loginButton.setTitle("Sign in", for: .normal) FBSnapshotVerifyView(view: loginButton) }
Detect possible UI elements edge cases Involve designer in code review process Snapshot tests runs at the same <me as other tests Separate logical and visual changes 10010 11001 11100 01100 10001
SEPARATION Detect possible UI elements edge cases Involve designer in code review process Snapshot tests are fast enough Snapshot tests runs at the same =me as other tests Separate logical and visual changes 10010 11001 11100 01100 10001