SwiftUI Central

SwiftUI Central

Follow
Follow
homebadges
Tag

TDD (Test-driven development)

#tdd

More content

Read more stories on Hashnode


Articles with this tag

SwiftUI - TDD actor to avoid race condition

Jan 12, 20234 min read

Problem: How to avoid threading race conditions in your class? Solution: Use actor that handles all the concurrency for you! Code that runs...

SwiftUI - TDD actor to avoid race condition

SwiftUI - TDD async/await

Oct 13, 202217 min read

Problem: How to TDD async/await ? Solution: Stub the response, async function needs to know it's result before call IMPORTANT: This tutorial is only...

SwiftUI - TDD async/await

SwiftUI - Extract navigation logic from SwiftUI views for testability

Jun 21, 202220 min read

Problem: How to test your navigation logic in SwiftUI ? Solution: Extract navigation logic in a separate Service that handles it using UIKit SwiftUI...

SwiftUI - Extract navigation logic from SwiftUI views for testability

SwiftUI - Test drive the logic inside a view using TDD

May 30, 202216 min read

Problem: How test behavior inside a SwiftUI view ? Solution: Extract all the logic in a ViewModel and test drive only the behaviour using the TDD...

SwiftUI - Test drive the logic inside a view using TDD

SwiftUI - Automate UI regression

Apr 21, 20224 min read

Problem: How to automate regression on UI screens? Solution: Snapshot Tests ! SwiftUI and the Live Preview are a good matchThanks to them I was able...

SwiftUI - Automate UI regression

SwiftUI - Integrate UI without a ready backend

Feb 16, 20226 min read

Problem: How to integrate UI with a not ready backend? Solution: By decoupling the model returned by the API from the model that manages the UI...

SwiftUI - Integrate UI without a ready backend