iOS 12 Development: Testing & Error Handling
iOS 12
| Beginner
- 13 videos | 1h 2m 54s
- Includes Assessment
- Earns a Badge
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 appthrow custom errors in a Swift based iOS 12 appuse a do/catch block to handle errors being thrownhandle errors internally in a methods body rather than propagate them furtherdecide which errors to throw and which handle internally in a methodconvert thrown errors into optional values when it makes sense to do sodisable error propagation in situations where we expect errors will not be thrown
-
work with errors in methods that require error pointersuse the debugging features of XCode to find and fix bugs in an iOS appcreate unit test targets and classes to support executing unit tests in an iOS appexecute unit tests to validate app functionalitytest methods and operations that execute asynchronouslycreate and throw errors in an iOS app
IN THIS COURSE
-
1.Creating Errors2m 30sUP NEXT
-
2.Error Propagation4m 12s
-
3.Handling Thrown Errors5m 37s
-
4.Handling Errors Internally5m 20s
-
5.Handling Only Specific Errors6m 8s
-
6.Treating Errors as Optionals2m 39s
-
7.Disabling Error Propagation4m 3s
-
8.Working with Error Pointers3m 7s
-
9.Debugging an App9m 4s
-
10.Creating Unit Test Targets4m 10s
-
11.Executing Unit Tests7m 49s
-
12.Testing Asynchronous Methods5m 51s
-
13.Exercise: Working with Errors in iOS2m 23s
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.