Learn how to set up an interface for testing with the Xcode storyboards.
- [Instructor] Now that we have a data model…and a manager class we can move on…to testing our MovieLibraryViewController.…This is the view controller that's going to contain…the table view where our movies are displayed.…Let's do a little preparation and set up our view…for testing.…In our FilmFestTests folder, going to click on TestControllers…and create a new Unit Test Case Class file.…I'm going to call it MovieLibraryViewControllerTests,…hit Next and Create.…
Let's add our @testable import line.…And delete our boilerplate code.…And give ourselves some room here.…A common and practical place to start with most view testing…is to check that an item or model is actually present…and not nil, so the first test we're going to write…is to check if our new view controller has a table view…and that it's not nil.…Right here on line 24, going to write func testMovieLibraryVC…stands for view controller, TableViewShouldNotBeNil.…
When we constructed our data model we learned…that the cleanest and often most efficient way…
- Test-driven development: history and theory
- Creating a data model test
- Expanding tests
- Testing class methods
- Checking for duplicates
- Testing table views
- Mocking cells
- Testing cell selection
- Assembling the app
Skill Level Intermediate
Distributing Your iOS App for Testing with TestFlightwith Ron Buencamino35m 10s Intermediate
1. Foundation and Theory
2. Data Models and the Manager Class
3. UITableView Testing
4. Finishing Touches and Xcode Features
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.