The analytics library we built in this series is easy to use thanks to its intuitive API. The call site is no longer littered with string literals and the API the analytics library exposes is type safe. We don't stop here, though. I promised you that the analytics library would be testable. Let's focus on that aspect in the next few episodes.
Subscribe to Cocoacasts Plus to watch this episode.
Building Type-Safe APIs in Swift
Unit Testing the Analytics Library
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
-
6 Unit Testing the Analytics Library
09:49
-
7 Looking Beyond Code Coverage
09:39
-
08:23