In the previous episodes, we used code coverage to help us write unit tests for the analytics library we built. This worked fine, but code coverage isn't perfect. Code coverage inspects which lines of code are executed when the test suite is run. The result may be misleading or incorrect at times. In this episode, we take a look at an important shortcoming of code coverage.
Subscribe to Cocoacasts Plus to watch this episode.
Building Type-Safe APIs in Swift
Filling in the Gaps of the Test Suite
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
-
8 Filling in the Gaps of the Test Suite
05:30
-
08:23