Repository created to track the learning process of Unit testing and UI Testing in Swift. It consists in a simple SwiftUI app that contains testeable models, services, helpers, extensions, etc. All these files are not being used in the app, they only are present to be tested in the Unit Test/UI Test target. Files are grouped depending on the article/video/etc. I used as a resource for learning.
- Getting started with Unit Testing: https://www.youtube.com/watch?v=P-Zow2yVx4o (resources: https://kilo-loco.teachable.com/courses/youtube/lectures/17209969).
- Introduction: https://kewin.medium.com/unit-testing-in-swift-introduction-bcc452127da2
- Part one - The fundamentals: https://medium.com/swlh/unit-testing-in-swift-the-fundamentals-eec805766349
- Part two - Async expectations: https://medium.com/swlh/unit-testing-in-swift-asynchronous-expectations-376e1427aeb9
- Part three - Proper architecture: https://kewin.medium.com/unit-testing-in-swift-proper-architecture-1b9ed78fd00c
- Part four - Mocking: https://kewin.medium.com/unit-testing-in-swift-mocking-6bf28f895dcb
- Part five - Behavioural assertion: https://medium.com/swlh/unit-testing-in-swift-behavioural-assertion-8f7e01948ade
- Engineering for Testeability (WWDC 2017): https://developer.apple.com/videos/play/wwdc2017/414/
- Testing Tips and Tricks (WWDC 2018): https://developer.apple.com/videos/play/wwdc2018/417/
- Testing in Xcode (WWDC 2019): https://developer.apple.com/videos/play/wwdc2019/413/
- TDD samples: https://qualitycoding.org/tdd-sample-archives/
- Unit testing tutorial: https://www.raywenderlich.com/21020457-ios-unit-testing-and-ui-testing-tutorial
- Is Unit Testing worth the effort?: https://stackoverflow.com/questions/67299/is-unit-testing-worth-the-effort