iOS 12 Development: Testing and Error Handling


Overview/Description
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description
Testing and error-handling are an important part of understanding the user experience. This course explores how iOS 12 apps should be built alongside a solid suite of tests to make them maintainable. Begin by learning how to set up tests for an iOS project and how to work with app errors. Next, devise an enumeration test to represent a set of related errors in an iOS app. Observe how to throw custom errors in a Swift based iOS 12 app. Use a do/catch block to handle thrown errors. Learn how to handle errors internally. Work with specific errors, error pointers, and optional value errors. Disable error propagation. Debug apps. Create and execute unit tests. Finally, set up asynchronous test methods.

Expected Duration (hours)
1.1

Lesson Objectives

iOS 12 Development: Testing and Error Handling

  • create an enumeration to represent a set of related errors in an iOS app
  • throw custom errors in a Swift based iOS 12 app
  • use a do/catch block to handle errors being thrown
  • handle errors internally in a methods body rather than propagate them further
  • decide which errors to throw and which handle internally in a method
  • convert thrown errors into optional values when it makes sense to do so
  • disable error propagation in situations where we expect errors will not be thrown
  • work with errors in methods that require error pointers
  • use the debugging features of XCode to find and fix bugs in an iOS app
  • create unit test targets and classes to support executing unit tests in an iOS app
  • execute unit tests to validate app functionality
  • test methods and operations that execute asynchronously
  • create and throw errors in an iOS app
  • Course Number:
    it_sdiost_05_enus

    Expertise Level
    Beginner