Intro to Unit Testing in Swift

Channel Avatar
Comment
X
Share
Intro to Unit Testing in Swift
Intro to Unit Testing in Swift
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

Take the opportunity to connect and share this video with your friends and family if you find it useful.

Keywords: Swift Unit Tests, Unit Testing in Swift, How to unit test in swift, Swift, iOS Development, Sean Allen, swift unit testing, swift unit testing tutorial, swift unit test example, unit test in swift ios, unit test in swiftui, swiftui unit test, unit test ios swift tutorial, swiftui unit testing, swiftui unit testing tutorial, how to write unit tests in swift, swift write unit tests, ios dev interview questions, swift interview questions, swift tutorial

Read Also

Leave a Reply

Your email address will not be published. Required fields are marked *