Go to
https://squarespace.com/seanallen to save 10% off your first purchase of a website or domain using code SEANALLEN.
Unit Testing in Swift is a fundamental skill that will save you from errors and regressions. In this video I tell you what Unit Tests are and discuss the benefits of writing them. Then I show you a real example in code using a Tip Calculator app and then we discuss if writing Unit Tests is worth it for your project.
My iOS Dev Courses:
https://seanallen.teachable.com/
Twitter:
Sean Allen -
https://twitter.com/seanallen_dev
Hired.com:
https://hired.com/x/1n01g
Book and learning recommendations that help out the channel if you decide to purchase (Affiliate Links):
Paul Hudson's Hacking With Swift:
https://gumroad.com/a/762098803
Donny Wals - Combine:
https://gumroad.com/a/909014131
Mark Moeyken’s SwiftUI Books:
www.bigmountainstudio.com/swiftui-views-book/fzc51
Objc.io Books (Thinking in SwiftUI & Advanced Swift):
https://gumroad.com/a/656585843
Timestamps:
0:00 - What are Unit Tests?
1:40 - Benefits of Unit Tests
3:15 - Unit Test code example begins
4:55 - Add Test Target to project & files
6:55 - First Unit Test (Happy Path)
11:04 - Unit Test for negative number
15:12 - Tests aren't always worth it - here's why
#swift #softwaredeveloper #iosdeveloper
Share this page with your family and friends.