Join Mark DiFranco for an in-depth discussion in this video Next steps, part of Swift: Writing Testable Code.
- [Mark] We're at the end of our course…on writing testable code in Swift.…Hopefully you've been inspired to start adding tests…to you projects.…We've covered the dependency inversion principle…and the single responsibility principle,…and we've seen how they can help us keep our architecture…flexible and easy to use.…We then took a look at some best practices…when writing unit tests.…Finally we wrote some UI tests…to test the user interface of our app.…If you're planning on starting a new project soon,…I recommend trying to use the concepts…covered in this course.…It's almost guaranteed to save you…some headaches down the road.…
If you've already got an existing project,…you can still integrate these concepts.…I recommend starting with your lower level classes…and building up from there.…Make your assembler a singleton…and manually resolve dependencies in the classes…that have not been converted yet…similar to how the AppDelegate works in our sample project.…Swinject has a few other frameworks available…to help us with dependency injection,…
- Why write unit tests?
- What is dependency injection?
- Using protocols to help with tests
- Handling external dependencies
- Anatomy of a test case
- Writing tests
- Analyzing code coverage
- Visualizing test results
- Writing and extending UI tests
Skill Level Intermediate
Core Data for iOS and macOS Enterprise Developerswith Jon Bott1h 46m Intermediate
Learning Server-Side Swift with Vaporwith Ron Buencamino1h 30m Intermediate
Swift 3 Essential Training: Beyond the Basicswith Scott Gardner2h 58m Intermediate
1. Dependency Injection
2. Using Protocols
3. Writing Tests
4. UI Tests
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
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.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.