iOS 12 Development: Testing & Error Handling

iOS    |    Beginner
  • 13 videos | 1h 2m 54s
  • Includes Assessment
  • Earns a Badge
Rating 4.8 of 5 users Rating 4.8 of 5 users (5)
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.

WHAT YOU WILL LEARN

  • 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

IN THIS COURSE

  • 2m 30s
    In this video, you will learn how to create an enumeration to represent a set of related errors in an iOS app. FREE ACCESS
  • 4m 12s
    In this video, you will learn how to throw custom errors in a Swift based iOS 12 app. FREE ACCESS
  • Locked
    3.  Handling Thrown Errors
    5m 37s
    In this video, you will use a try/catch block to handle errors being thrown. FREE ACCESS
  • Locked
    4.  Handling Errors Internally
    5m 20s
    Learn how to handle errors internally in a method's body rather than propagate them further. FREE ACCESS
  • Locked
    5.  Handling Only Specific Errors
    6m 8s
    During this video, you will learn how to decide which errors to throw and which to handle internally in a method. FREE ACCESS
  • Locked
    6.  Treating Errors as Optionals
    2m 39s
    In this video, you will learn how to convert thrown errors into optional values when it is sensible to do so. FREE ACCESS
  • Locked
    7.  Disabling Error Propagation
    4m 3s
    In this video, find out how to disable error propagation in situations where we do not expect errors will be thrown. FREE ACCESS
  • Locked
    8.  Working with Error Pointers
    3m 7s
    In this video, you will work with errors in methods that require an error pointer. FREE ACCESS
  • Locked
    9.  Debugging an App
    9m 4s
    In this video, you will learn how to use the debugging features of XCode to find and fix bugs in an iOS app. FREE ACCESS
  • Locked
    10.  Creating Unit Test Targets
    4m 10s
    During this video, you will learn how to create unit test targets and classes to support executing unit tests in an iOS app. FREE ACCESS
  • Locked
    11.  Executing Unit Tests
    7m 49s
    Learn how to execute unit tests to ensure app functionality. FREE ACCESS
  • Locked
    12.  Testing Asynchronous Methods
    5m 51s
    Find out how to test methods and operations that execute asynchronously. FREE ACCESS
  • Locked
    13.  Exercise: Working with Errors in iOS
    2m 23s
    In this video, you will learn how to create and throw errors in an iOS app. FREE ACCESS

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Rating 4.7 of 13 users Rating 4.7 of 13 users (13)
Rating 4.9 of 20 users Rating 4.9 of 20 users (20)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.5 of 549 users Rating 4.5 of 549 users (549)
Rating 5.0 of 5 users Rating 5.0 of 5 users (5)
Rating 4.6 of 156 users Rating 4.6 of 156 users (156)