iOS 12 Development: Testing & Error Handling

iOS 12
  • 13 Videos | 1h 8m 54s
  • Includes Assessment
  • Earns a Badge
Likes 9 Likes 9
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

  • Playable
    1. 
    Creating Errors
    2m 30s
    UP NEXT
  • Playable
    2. 
    Error Propagation
    4m 12s
  • Locked
    3. 
    Handling Thrown Errors
    5m 37s
  • Locked
    4. 
    Handling Errors Internally
    5m 20s
  • Locked
    5. 
    Handling Only Specific Errors
    6m 8s
  • Locked
    6. 
    Treating Errors as Optionals
    2m 39s
  • Locked
    7. 
    Disabling Error Propagation
    4m 3s
  • Locked
    8. 
    Working with Error Pointers
    3m 7s
  • Locked
    9. 
    Debugging an App
    9m 4s
  • Locked
    10. 
    Creating Unit Test Targets
    4m 10s
  • Locked
    11. 
    Executing Unit Tests
    7m 49s
  • Locked
    12. 
    Testing Asynchronous Methods
    5m 51s
  • Locked
    13. 
    Exercise: Working with Errors in iOS
    2m 23s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

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

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE