Intro to Unit Testing in Swift

Published: 30 June 2023
on channel: Sean Allen
35,373
1k

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 -   / 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


Watch video Intro to Unit Testing in Swift online, duration hours minute second in high quality that is uploaded to the channel Sean Allen 30 June 2023. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 35,373 times and liked it 1 thousand visitors.