Project 39: Unit testing with XCTest
About 2 min
Project 39: Unit testing with XCTest 관련
Hacking with iOS – learn to code iPhone and iPad apps with free Swift tutorials
Learn Swift coding for iOS with these free tutorials – learn Swift, iOS, and Xcode
Project 39: Unit testing with XCTest
Learn how to write unit tests and user interface tests using Xcode's built-in testing framework.
Description
Learn how to write unit tests and user interface tests using Xcode's built-in testing framework.
Setting up | Hacking with iOS
Setting up
Creating our first unit test using XCTest | Hacking with iOS
Creating our first unit test using XCTest
Loading our data and splitting up words: filter() | Hacking with iOS
Loading our data and splitting up words: filter()
Counting unique strings in an array | Hacking with iOS
Counting unique strings in an array
measure(): How to optimize our slow code and adjust the baseline | Hacking with iOS
measure(): How to optimize our slow code and adjust the baseline
Filtering using functions as parameters | Hacking with iOS
Filtering using functions as parameters
Updating the user interface with filtering | Hacking with iOS
Updating the user interface with filtering
User interface testing with XCTest | Hacking with iOS
User interface testing with XCTest
Wrap up | Hacking with iOS
Wrap up
Need help?
I put together answers for over 600 of the most frequently asked questions I received from readers into one place: the Swift 5 Knowledge Base. It answers basic and advanced questions, and provides lots of free code you can re-use however you please. If you hit problems, try searching there first.
If you're still having problems, you can post to the Hacking with Swift subreddit where you can expect an answer fairly quickly, or you can find me on Twitter where I'll do my best to help.
Project files
The project files for Hacking with Swift are all available on GitHub, where you can view them, fork them, or download them: