In the previous episode, we used the adapter pattern to make the integration of the project with the Google SDK testable. In this episode, we put the theory to the test. We write unit tests for the GoogleAnalyticsService
class to validate the integration of the project with the Google SDK.
Subscribe to Cocoacasts Plus to watch this episode.
Building Type-Safe APIs in Swift
Extending Code Coverage with the Adapter Pattern
by Bart Jacobs in Programming
Swift 5
Xcode 14
iOS 16
Building Type-Safe APIs in Swift
-
1 Eliminating Stringly Typed Code
06:31
-
08:21
-
06:22
-
05:30
-
5 Decoupling the Analytics Library
09:50
-
7 Looking Beyond Code Coverage
09:39
-
08:23
-
10 Extending Code Coverage with the Adapter Pattern
06:53